Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

cookies: increase candidate list with dot prefixed domains

Daniel Graña32b781a1b82d
diff --git a/scrapy/http/cookies.py b/scrapy/http/cookies.py
index 8104da2a2..a3846dadb 100644
--- a/scrapy/http/cookies.py
+++ b/scrapy/http/cookies.py
@@ -92,7 +92,7 @@ def potential_domain_matches(domain):
start = domain.index('.', start) + 1
except ValueError:
pass
- return matches
+ return matches + ['.' + d for d in matches]
class _DummyLock(object):
def acquire(self):