summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pyramid/authentication.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pyramid/authentication.py b/src/pyramid/authentication.py
index 47570d5fc..1bddc1ff3 100644
--- a/src/pyramid/authentication.py
+++ b/src/pyramid/authentication.py
@@ -1035,8 +1035,8 @@ class AuthTktCookieHelper:
domains.append('.' + cur_domain.split('.', 1)[1])
else:
domains.append(None)
- domains.append(cur_domain)
if self.wild_domain:
+ domains.append(cur_domain)
domains.append('.' + cur_domain)
profile = self.cookie_profile(request)