12 Nov
2002
12 Nov
'02
9:40 p.m.
On Tuesday, Nov 12, 2002, at 16:19 America/New_York, Jeff Epler wrote:
On Tue, Nov 12, 2002 at 04:03:24PM -0500, 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"
Well, it's already doing capitalize(), might as well capitalize it the way that everything else does. It certainly wouldn't break anything to send it with string.capwords(name, '-') instead of name.capitalize(). -bob