Skip to content

Commit

Permalink
Update server.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gnh1201 authored Nov 4, 2024
1 parent e067afc commit e79a7cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def process_jsonrpc2(_data: bytes):
scheme, _webserver, _port = proxy_pass.encode(client_encoding).split(b":")
webserver = _webserver[2:]
port = int(_port.decode(client_encoding))
method = b"CONNECT" if scheme == b"https" else method # proxy pass on HTTPS
break

proxy_server(webserver, port, scheme, method, url, conn, addr, data)
Expand Down

0 comments on commit e79a7cf

Please sign in to comment.