aboutsummaryrefslogtreecommitdiffstats
path: root/pathod/language/http.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <Kriechi@users.noreply.github.com>2016-09-01 10:39:57 +0200
committerGitHub <noreply@github.com>2016-09-01 10:39:57 +0200
commit55d938b880fd861a22ac66da0da9a741bdd9abd5 (patch)
treed469bbd0dd5b1966591a332bf2094d4389100219 /pathod/language/http.py
parent281d779fa3eb6b81ec76d046337275c0a82eff46 (diff)
parent0d0c2c788df4b60e951e6fcc13b479de8cec22c1 (diff)
downloadmitmproxy-55d938b880fd861a22ac66da0da9a741bdd9abd5.tar.gz
mitmproxy-55d938b880fd861a22ac66da0da9a741bdd9abd5.tar.bz2
mitmproxy-55d938b880fd861a22ac66da0da9a741bdd9abd5.zip
Merge pull request #1488 from mitmproxy/websockets
add WebSockets support
Diffstat (limited to 'pathod/language/http.py')
-rw-r--r--pathod/language/http.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pathod/language/http.py b/pathod/language/http.py
index fdc5bba6..46027ca3 100644
--- a/pathod/language/http.py
+++ b/pathod/language/http.py
@@ -198,7 +198,7 @@ class Response(_HTTPMessage):
1,
StatusCode(101)
)
- headers = netlib.websockets.WebsocketsProtocol.server_handshake_headers(
+ headers = netlib.websockets.server_handshake_headers(
settings.websocket_key
)
for i in headers.fields:
@@ -310,7 +310,7 @@ class Request(_HTTPMessage):
1,
Method("get")
)
- for i in netlib.websockets.WebsocketsProtocol.client_handshake_headers().fields:
+ for i in netlib.websockets.client_handshake_headers().fields:
if not get_header(i[0], self.headers):
tokens.append(
Header(