according to the spec, CONTENT_LENGTH or CONTENT_TYPE may be empty or
absent. Don't force them to be empty then.
This commit is contained in:
benoitc 2012-02-19 12:06:26 +01:00
parent 9d89d4b00a
commit 9b1aa8a159

View File

@ -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