Manlio Perillo wrote: > Hi. > > 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?
It's the sign of some ambiguity; the Content-Type header should be CONTENT_TYPE, and Content-Length should be CONTENT_LENGTH. If they show up as HTTP_CONTENT_TYPE etc then something weird happened; probably code that didn't take these special-case headers into account. -- Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org _______________________________________________ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com