mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
close #300 .
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:
parent
9d89d4b00a
commit
9b1aa8a159
@ -56,8 +56,6 @@ def create(req, sock, client, server, cfg):
|
|||||||
"QUERY_STRING": req.query,
|
"QUERY_STRING": req.query,
|
||||||
"RAW_URI": req.uri,
|
"RAW_URI": req.uri,
|
||||||
"SERVER_PROTOCOL": "HTTP/%s" % ".".join(map(str, req.version)),
|
"SERVER_PROTOCOL": "HTTP/%s" % ".".join(map(str, req.version)),
|
||||||
"CONTENT_TYPE": "",
|
|
||||||
"CONTENT_LENGTH": ""
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# authors should be aware that REMOTE_HOST and REMOTE_ADDR
|
# authors should be aware that REMOTE_HOST and REMOTE_ADDR
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user