[MRG+1] Add test for webclient with POST method and no body given #1089
Conversation
…or POST request with no given body
Could you please move this check to a separate method and mark it as expectedFailure? Use https://docs.python.org/2/library/unittest.html#unittest.expectedFailure if it works (I'm not sure it'll work here), something pytest-specific if it doesn't work. |
@kmike I have added few lines to |
…Factory for POST request with no given body
…Factory for POST request with no given body
LGTM. I think we shouldn't set Content-Length header if it is already set, but it is not related to this issue because when body is not None scrapy also overrides the header. |
Thanks for feedback, should I correct something? |
I think this PR is fine as-is. We usually require 2 team members to review the PR before merging (unless the PR is obvious); let's wait for someone else to check & merge it :) |
Ok! |
@drack3800, I know i'm nitpicking but please don't add whitespace on empty lines? same in your referenced bugfix. Thanks. |
@nyov fixed. |
[MRG+1] Add test for webclient with POST method and no body given
scrapyGH-823 was fixed only for HTTP/1.0 (in scrapyGH-1089)
Discussed in #823