Skip to content

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

Added application/xml mimetype to the known response types

elpolilla74661d54d0e8
diff --git a/scrapy/trunk/scrapy/core/downloader/responsetypes.py b/scrapy/trunk/scrapy/core/downloader/responsetypes.py
index 689f85eab..7a5921552 100644
--- a/scrapy/trunk/scrapy/core/downloader/responsetypes.py
+++ b/scrapy/trunk/scrapy/core/downloader/responsetypes.py
@@ -15,6 +15,7 @@ class ResponseTypes(object):
CLASSES = {
'text/html': 'scrapy.http.HtmlResponse',
+ 'application/xml': 'scrapy.http.XmlResponse',
'text/xml': 'scrapy.http.XmlResponse',
'text': 'scrapy.http.TextResponse',
}