[issue22467] Lib/http/server.py, inconsistent header casing

2014-09-23 Thread R. David Murray
R. David Murray added the comment: Don't worry about it :) The roundup UI isn't terrible, but it is far from perfect. -- ___ Python tracker ___

[issue22467] Lib/http/server.py, inconsistent header casing

2014-09-23 Thread DS6
DS6 added the comment: Oh... It showed that the message had been created but it really hadn't, because I had the Status field set to " - no selection - " so now I've posted two (three) times. Good lord I am sickeningly bad at this. I'll just stop posting now. -- _

[issue22467] Lib/http/server.py, inconsistent header casing

2014-09-23 Thread DS6
DS6 added the comment: Yeah, I was aware it's used for getting the request headers. It's strange that it's not used for setting reply headers, though the casing really doesn't cause any problems for the current implementation and really only affects fringe cases like mine and that fellow in is

[issue22467] Lib/http/server.py, inconsistent header casing

2014-09-23 Thread DS6
DS6 added the comment: Whoa, I thought " - no selection - " would not change the set values, but I guess I was wrong. I have no idea what I'm doing, sorry. -- ___ Python tracker ___

[issue22467] Lib/http/server.py, inconsistent header casing

2014-09-23 Thread R. David Murray
R. David Murray added the comment: It also has a leading underscore, which means it is a "private" interface and you use it at your own risk. To the extent that there is an actionable issue here, it is a duplicate of issue 12455. email.message already provides case insensitive header retrieva

[issue22467] Lib/http/server.py, inconsistent header casing

2014-09-22 Thread DS6
DS6 added the comment: Erp, *retrieve, and I meant copyfile, not sendfile. I'm tired. Very quick reply, by the way. I suppose I forgot to mention that _headers_buffer is for sending headers, not for receiving them. As far as I can read, the received header information is already case-insensit

[issue22467] Lib/http/server.py, inconsistent header casing

2014-09-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: First thing (and the easiest is), if you find inconsistent casing in http/server.py itself, then make it consistent in your patch against cpython default branch (from hg.python.org). Make it Content-Length and Content-Type in your patch. Next part is while r

[issue22467] Lib/http/server.py, inconsistent header casing

2014-09-22 Thread DS6
New submission from DS6: Inconsistent casing, such as "Content-type" vs "Content-Type", "Content-Length" vs "Content-length", while technically not breaking any RFC or other HTTP-related rules (headers are case-insensitive, after all), can occasionally cause problems when attempting to retriev