Jeff Epler wrote:
Bob Ippolito wrote:
I have a stupid device that's talking to a Twisted web server that demands HTTP headers to be capitalized Like-This, however Twisted only capitalizes the first character..
[...]
Any chance someone could patch that up?
Doubtful.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 "Field names are case-insensitive"
Nevertheless the headers are almost always presented in the HTTP spec and other reference materials in the style 'Content-Type'. I would guess therefore that this style will be the one most widely adopted by those broken clients that expect a particular capitalisation.
Hamish Lawson