mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-13 23:53:54 +08:00
.
This commit is contained in:
parent
ff8039afb0
commit
cab71e5f4d
@ -84,10 +84,11 @@ class WebSocket:
|
|||||||
path += "?" + query
|
path += "?" + query
|
||||||
return ishttps, server, port, path
|
return ishttps, server, port, path
|
||||||
|
|
||||||
def _parseheader(self, header):
|
def _parseheader(self, headers):
|
||||||
if header is None:
|
_x = []
|
||||||
return WINHTTP_NO_ADDITIONAL_HEADERS
|
for k in sorted(headers.keys()):
|
||||||
return "\r\n".join(header)
|
_x.append("{}: {}".format(k, headers[k]))
|
||||||
|
return "\r\n".join(_x)
|
||||||
|
|
||||||
def _setproxy(self, hsess, http_proxy_host, http_proxy_port):
|
def _setproxy(self, hsess, http_proxy_host, http_proxy_port):
|
||||||
if http_proxy_host is None or http_proxy_port is None:
|
if http_proxy_host is None or http_proxy_port is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user