Senthil Kumaran orsent...@gmail.com added the comment:
+1 removing HTTP 0.9, and falling back to HTTP 1.0 behavior where ever it was
HTTP 0.9. Removing support for response without status (which was acceptable by
0.9) is fine. I reviewed the patch too and it seems good to go.
--
Changes by Antoine Pitrou pit...@free.fr:
--
title: Rip off HTTP 0.9 support - Rip out HTTP 0.9 support
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10711
___
Antoine Pitrou pit...@free.fr added the comment:
Here is a patch.
--
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file20052/removehttp09.patch
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +exarkun
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10711
___
___
Python-bugs-list mailing
Changes by Antoine Pitrou pit...@free.fr:
Removed file: http://bugs.python.org/file20052/removehttp09.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10711
___
Changes by Antoine Pitrou pit...@free.fr:
Added file: http://bugs.python.org/file20053/removehttp09.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10711
___
Daniel Stutzbach stutzb...@google.com added the comment:
Would it be worth keeping (but modifying) test_http_0_9 to verify that the
server complains in the expected way?
--
nosy: +stutzbach
___
Python tracker rep...@bugs.python.org
Gregory P. Smith g...@krypto.org added the comment:
Ripping HTTP 0.9 support _out_ flys directly in the face of be lenient in
what you accept and strict in what you produce.
I do not mind removing support from http.server. But http.client needs to be
able to communicate with any random
Daniel Stutzbach stutzb...@google.com added the comment:
At minimum, I think we should apply this part of Antoine's patch:
-# Most web servers default to HTTP 0.9, i.e. don't send a status line.
-default_request_version = HTTP/0.9
+default_request_version = HTTP/1.0
--
Antoine Pitrou pit...@free.fr added the comment:
But http.client needs to be able to communicate with any random server
created since the dawn of time.
Well, that sounds a bit unreasonable...
Often on 8 bit microcontrollers that haven't been updated since 1994.
Anyone with such needs
Antoine Pitrou pit...@free.fr added the comment:
Would it be worth keeping (but modifying) test_http_0_9 to verify that
the server complains in the expected way?
Actually, I don't think the server will complain, since the request is legit.
It will send back a full response with status line
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10711
___
___
Antoine Pitrou pit...@free.fr added the comment:
Patch with adapted tests.
--
Added file: http://bugs.python.org/file20061/removehttp09-2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10711
Gregory P. Smith g...@krypto.org added the comment:
Given the 6961 issue I'm happy to change my position and say we nuke the 0.9
client support.
Anyone who _needs_ that can grab this old code or write trivial code for their
poor server's needs.
--
14 matches
Mail list logo