From c3257dc610ccdd963fae8dda330fa337deb53054 Mon Sep 17 00:00:00 2001 From: santoshkosgi Date: Wed, 15 Apr 2020 17:54:10 +0530 Subject: [PATCH] Change Content-type to Content-Type (#4481) Co-authored-by: santosh --- scrapy/responsetypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/responsetypes.py b/scrapy/responsetypes.py index ad89d9d22..7c5eeac21 100644 --- a/scrapy/responsetypes.py +++ b/scrapy/responsetypes.py @@ -71,7 +71,7 @@ class ResponseTypes: cls = Response if b'Content-Type' in headers: cls = self.from_content_type( - content_type=headers[b'Content-type'], + content_type=headers[b'Content-Type'], content_encoding=headers.get(b'Content-Encoding') ) if cls is Response and b'Content-Disposition' in headers: