1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-25 18:43:58 +00:00

style fix

This commit is contained in:
drack3800 2015-03-25 20:43:07 +03:00
commit 6afd1a78bd

View File

@ -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)