[Web-SIG] HTTP_CONTENT_TYPE and HTTP_CONTENT_LENGTH
manlio_perillo at libero.it
Wed Dec 12 20:17:30 CET 2007
The CGI spec says:
"""Servers are not required to create metavariables for all the request
header fields that they receive. In particular, they MAY decline to make
available any header fields carrying authentication information, such as
"Authorization", or which are available to the script via other
metavariables, such as "Content-Length" and "Content-Type"."""
However wsgiref.validate raises an exception:
AssertionError: Environment should not have the key: HTTP_CONTENT_TYPE
(use CONTENT_TYPE instead)
Why don't just raise a warning?
Thanks Manlio Perillo
More information about the Web-SIG