mirror of https://github.com/scrapy/scrapy.git
Handle as html standard mimetype defined by Open Mobile Alliance
This commit is contained in:
parent
08d2c2b9ee
commit
049f315ff4
|
|
@ -22,6 +22,7 @@ class ResponseTypes(object):
|
|||
'application/rdf+xml': 'scrapy.http.XmlResponse',
|
||||
'application/rss+xml': 'scrapy.http.XmlResponse',
|
||||
'application/xhtml+xml': 'scrapy.http.HtmlResponse',
|
||||
'application/vnd.wap.xhtml+xml': 'scrapy.http.HtmlResponse',
|
||||
'application/xml': 'scrapy.http.XmlResponse',
|
||||
'application/json': 'scrapy.http.TextResponse',
|
||||
'application/javascript': 'scrapy.http.TextResponse',
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ class ResponseTypesTest(unittest.TestCase):
|
|||
('text/html; charset=UTF-8', HtmlResponse),
|
||||
('text/xml; charset=UTF-8', XmlResponse),
|
||||
('application/xhtml+xml; charset=UTF-8', HtmlResponse),
|
||||
('application/vnd.wap.xhtml+xml; charset=utf-8', HtmlResponse),
|
||||
('application/xml; charset=UTF-8', XmlResponse),
|
||||
('application/octet-stream', Response),
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue