Skip to content

Commit

Permalink
Added init to HttpCompMiddleware scrapy#1988 Typeo
Browse files Browse the repository at this point in the history
  • Loading branch information
cwen13 committed Sep 16, 2019
1 parent 2b6fb1b commit 96a8dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapy/downloadermiddlewares/httpcompression.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class HttpCompressionMiddleware(object):
def __int__(self, settings):
#setting to decide to keep or discard encoding header
#stored in default_settings.py
self.keep_encoding_header = setting.getbool('HTTPCOMPRESSION_HEADERS_KEEP')
self.keep_encoding_header = settings.getbool('HTTPCOMPRESSION_HEADERS_KEEP')

@classmethod
def from_crawler(cls, crawler):
Expand Down

0 comments on commit 96a8dfc

Please sign in to comment.