Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

adds a reference about empty request body and Content-Length header fix, closes #60.

Daniel Granaf43c58da1f58
diff --git a/scrapy/trunk/scrapy/core/downloader/handlers.py b/scrapy/trunk/scrapy/core/downloader/handlers.py
index 23f7a5af3..8b90948f6 100644
--- a/scrapy/trunk/scrapy/core/downloader/handlers.py
+++ b/scrapy/trunk/scrapy/core/downloader/handlers.py
@@ -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,