don't overwrite a response's encoding with None
This commit is contained in:
parent
e0b3339107
commit
e6d26f0476
@ -30,11 +30,11 @@ class Extractor():
|
||||
|
||||
def items(self):
|
||||
yield Message.Version, 1
|
||||
return
|
||||
|
||||
def request(self, url, encoding=None, *args, **kwargs):
|
||||
response = safe_request(self.session, url, *args, **kwargs)
|
||||
response.encoding = encoding
|
||||
if encoding:
|
||||
response.encoding = encoding
|
||||
return response
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user