Duplicate Content-Length header for POST requests with empty body #2677
Comments
A ticket has been opened upstream too: https://twistedmatrix.com/trac/ticket/9097 |
@redapple This doesn't seem like a Twisted bug? Shouldn't scrapy just not do the workaround on fixed Twisteds? |
Hi @hawkowl , @glyph asked me to open an issue on Twisted so I did. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally reported on StackOverflow.
HTTP requests with POST method and no request body are sent with 2
Content-Length: 0
headers.Reproducible with Scrapy 1.3.3 and Twisted 17.1:
(note that httpbin.org/post output does not show duplicate headers, but the Wireshark capture does)
Wireshark sniffing:
This is due to Twisted's twisted/twisted#670 since v17.1 and Scrapy's #1800 since Scrapy 1.1.0
The text was updated successfully, but these errors were encountered: