1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-26 15:24:12 +00:00
Daniel Grana 8fdf06ed08 Avoid sending Content-Length header when body is an empty string.
Some sites can't handle "Content-Length: 0" header, but twisted
HTTPClientFactory adds Content-Length header unless body is None.

scrapy enforces request.body usage as string, using None is not
possible.

thanks Matt for report, See:
http://groups.google.com/group/scrapy-users/browse_thread/thread/380ffa111879989e?hl=en

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40841
2009-02-10 13:23:38 +00:00
2009-05-04 18:16:20 +00:00
Description
Scrapy, a fast high-level web crawling & scraping framework for Python.
BSD-3-Clause 128 MiB
Languages
Python 99.8%
HTML 0.1%