mirror of https://github.com/scrapy/scrapy.git
small fix to the regex
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40279
This commit is contained in:
parent
555cb0940b
commit
c4aa1e7e8b
|
|
@ -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<mime>[^;]+);\s*charset=(?P<charset>[\w-]+)')
|
||||
|
|
|
|||
Loading…
Reference in New Issue