[Twisted-Python] stupid case sensitive web clients
bob at redivi.com
Tue Nov 12 16:40:00 EST 2002
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?
> "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().
More information about the Twisted-Python