Skip to content

Commit 029eda0

Browse files
AladdinAladdin
authored andcommitted
connect reason-phrase
1 parent 11d850e commit 029eda0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎pproxy/proto.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ async def http_accept(self, user, method, path, authority, ver, lines, host, pau
320320
authtable.set_authed(user)
321321
ifmethod=='CONNECT':
322322
host_name, port=netloc_split(authorityorpath)
323-
returnuser, host_name, port, lambdawriter: reply(200, f'{ver} 200 OK\r\nConnection: close\r\n\r\n'.encode())
323+
returnuser, host_name, port, lambdawriter: reply(200, f'{ver} 200 Connection Established\r\nConnection: close\r\n\r\n'.encode())
324324
else:
325325
host_name, port=netloc_split(url.netlocorhost, default_port=80)
326326
newpath=url._replace(netloc='', scheme='').geturl()

0 commit comments

Comments
(0)