benoitc/http-parser — pull request #19 by dowski (2012-10-01 17:42:01+00:00)
Title: Two WSGI environ bug fixes.

The Content-Type header was not being correctly handled. If it wasn't sent exactly as "CONTENT-TYPE" it was getting recorded in the environ as "HTTP_CONTENT_TYPE" which is against PEP-333.

In the pure-Python parser, the SCRIPT_NAME field was being mishandled due to mutation of the original environ. The code was looking for HTTP_SCRIPT_NAME which was already popped from the environ dictionary if it existed.