mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-25 18:43:58 +00:00
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…
x
Reference in New Issue
Block a user