mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix "Expect: continue-100" support on python 3
only bytes should be passed to the socket. fix #560
This commit is contained in:
parent
638ad129c8
commit
d29febdb28
@ -97,7 +97,7 @@ def create(req, sock, client, server, cfg):
|
||||
if hdr_name == "EXPECT":
|
||||
# handle expect
|
||||
if hdr_value.lower() == "100-continue":
|
||||
sock.send("HTTP/1.1 100 Continue\r\n\r\n")
|
||||
sock.send(b"HTTP/1.1 100 Continue\r\n\r\n")
|
||||
elif x_forwarded_for_header and hdr_name == x_forwarded_for_header:
|
||||
forward = hdr_value
|
||||
elif secure_headers and (hdr_name.upper() in secure_headers and
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user