Opened 6 days ago

#9346 defect new

twisted.web.http_headers.Headers mangles headers

Reported by: Nonisiuniis Owned by:
Priority: normal Milestone:
Component: web Keywords: http, header, mangle
Cc: Branch:
Author:

Description

Headers object defaults to lowercase all headers and then they are reformatted later. However this mangles headers that need to follow specific formatting, i.e. SOAPAction

>>> from twisted.web.http_headers import Headers
>>> h = Headers({'SOAPAction': ['https://server/path/SomeAction']})
>>> h
Headers({b'soapaction': [b'https://server/path/SomeAction']})

Docs: The SOAPAction HTTP Header Field

Change History (0)

Note: See TracTickets for help on using tickets.