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.pyindex 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 twistedmethod=request.method,- postdata=request.body or None,+ postdata=request.body or None, # see http://dev.scrapy.org/ticket/60headers=request.headers,agent=agent,cookies=request.cookies,