From 9b1aa8a159637da64fff13253fe9e55acd68ce13 Mon Sep 17 00:00:00 2001 From: benoitc Date: Sun, 19 Feb 2012 12:06:26 +0100 Subject: [PATCH] close #300 . according to the spec, CONTENT_LENGTH or CONTENT_TYPE may be empty or absent. Don't force them to be empty then. --- gunicorn/http/wsgi.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/gunicorn/http/wsgi.py b/gunicorn/http/wsgi.py index 41d20db2..3b34f4cf 100644 --- a/gunicorn/http/wsgi.py +++ b/gunicorn/http/wsgi.py @@ -56,8 +56,6 @@ def create(req, sock, client, server, cfg): "QUERY_STRING": req.query, "RAW_URI": req.uri, "SERVER_PROTOCOL": "HTTP/%s" % ".".join(map(str, req.version)), - "CONTENT_TYPE": "", - "CONTENT_LENGTH": "" } # authors should be aware that REMOTE_HOST and REMOTE_ADDR