mirror of https://github.com/scrapy/scrapy.git
style fix
This commit is contained in:
commit
6afd1a78bd
|
|
@ -112,7 +112,7 @@ class ScrapyHTTPClientFactory(HTTPClientFactory):
|
|||
|
||||
# set Host header based on url
|
||||
self.headers.setdefault('Host', self.netloc)
|
||||
|
||||
|
||||
# set Content-Length based len of body
|
||||
if self.body is not None:
|
||||
self.headers['Content-Length'] = len(self.body)
|
||||
|
|
|
|||
Loading…
Reference in New Issue