diff --git a/scrapy/trunk/scrapy/http/response.py b/scrapy/trunk/scrapy/http/response.py index 3f490c2e5..ddc82d085 100644 --- a/scrapy/trunk/scrapy/http/response.py +++ b/scrapy/trunk/scrapy/http/response.py @@ -106,7 +106,7 @@ class ResponseBody(object): This handles conversion to unicode and various character encodings. """ - _template = r'%s\s*=\s*[\"\']?\s*%s\s*[\"\']?' + _template = r'''%s\s*=\s*["']?\s*%s\s*["']?''' _httpequiv_re = _template % ('http-equiv', 'Content-Type') _content_re = _template % ('content', r'(?P[^;]+);\s*charset=(?P[\w-]+)')