mirror of https://github.com/scrapy/scrapy.git
adds a reference about empty request body and Content-Length header fix, closes #60.
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40842
This commit is contained in:
parent
8fdf06ed08
commit
f43c58da1f
|
|
@ -53,7 +53,7 @@ def create_factory(request, spider):
|
|||
agent = request.headers.pop('user-agent', default_agent)
|
||||
factory = HTTPClientFactory(url=url, # never pass unicode urls to twisted
|
||||
method=request.method,
|
||||
postdata=request.body or None,
|
||||
postdata=request.body or None, # see http://dev.scrapy.org/ticket/60
|
||||
headers=request.headers,
|
||||
agent=agent,
|
||||
cookies=request.cookies,
|
||||
|
|
|
|||
Loading…
Reference in New Issue