Issue 25740: multiple issues in http.client (original) (raw)
Thanks for these fixes. It might be better to open other report(s) for the FIXME comments, so you can explain them better, and propose any ideas or possible solutions. For some of them, it may be more appropriate to just fix them in the next (3.6) release, such as the method case insensitivity thing (to minimize backwards compatibility problems).
It would be good to have regression test cases for each bug fixed.
Regarding folded header field values, I think there was some discussion about deprecating that ability in Issue 22928. Definitely needs a separate report.
See Issue 23740 about various quirks with what objects and automatic encodings are accepted when sending a request. It is already a can of worms; I suggest not to make it any more complicated.
Can you elaborate on accepting invalid ports? Is this related to Issue 24169?