aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/language/http.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-11 16:13:22 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-15 15:51:01 +0200
commita0d8afd0fcc3c678da0dc956c5a80d4e07d5ac3e (patch)
treecf3b842c1ad8f7a75d6eb2ffa8063b5385407b5a /libpathod/language/http.py
parent30fbf57e4b72e3947c323d98aee7b2d44663e33c (diff)
downloadmitmproxy-a0d8afd0fcc3c678da0dc956c5a80d4e07d5ac3e.tar.gz
mitmproxy-a0d8afd0fcc3c678da0dc956c5a80d4e07d5ac3e.tar.bz2
mitmproxy-a0d8afd0fcc3c678da0dc956c5a80d4e07d5ac3e.zip
http2: add request-response to pathod
Diffstat (limited to 'libpathod/language/http.py')
-rw-r--r--libpathod/language/http.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/libpathod/language/http.py b/libpathod/language/http.py
index 9a8404f0..115f8069 100644
--- a/libpathod/language/http.py
+++ b/libpathod/language/http.py
@@ -367,10 +367,6 @@ class Request(_HTTPMessage):
return ":".join([i.spec() for i in self.tokens])
-class PathodErrorResponse(Response):
- pass
-
-
def make_error_response(reason, body=None):
tokens = [
Code("800"),
@@ -381,4 +377,4 @@ def make_error_response(reason, body=None):
Reason(base.TokValueLiteral(reason)),
Body(base.TokValueLiteral("pathod error: " + (body or reason))),
]
- return PathodErrorResponse(tokens)
+ return Response(tokens)