style fix

This commit is contained in:
drack3800 2015-03-25 20:43:07 +03:00
commit 6afd1a78bd
1 changed files with 1 additions and 1 deletions

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)