Skip to content

Commit 4965c8d

Browse files
authored
Merge pull request #125 from aladdinding/master
proxy should return 200 Connection established instead 200 OK
2 parents 11d850e + 1d276a8 commit 4965c8d

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
if method == 'CONNECT':
322322
host_name, port = netloc_split(authority or path)
323-
return user, host_name, port, lambda writer: reply(200, f'{ver} 200 OK\r\nConnection: close\r\n\r\n'.encode())
323+
return user, host_name, port, lambda writer: reply(200, f'{ver} 200 Connection established\r\nConnection: close\r\n\r\n'.encode())
324324
else:
325325
host_name, port = netloc_split(url.netloc or host, default_port=80)
326326
newpath = url._replace(netloc='', scheme='').geturl()

0 commit comments

Comments
 (0)