aboutsummaryrefslogtreecommitdiffstats
path: root/pathod
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-11-20 17:21:21 +0100
committerThomas Kriechbaumer <Kriechi@users.noreply.github.com>2016-11-20 17:21:21 +0100
commitf74e561524d04c93cd7953f34e78ebe67eaa58a8 (patch)
treec1bf7ad5c3f583c4e25f11108826d514b1d36086 /pathod
parent79c753d8f8ea934c0e3d7973ba520c6e3d903d9f (diff)
downloadmitmproxy-f74e561524d04c93cd7953f34e78ebe67eaa58a8.tar.gz
mitmproxy-f74e561524d04c93cd7953f34e78ebe67eaa58a8.tar.bz2
mitmproxy-f74e561524d04c93cd7953f34e78ebe67eaa58a8.zip
rewrite absolute-form HTTP requests to relative form, fix #1759 (#1765)
Diffstat (limited to 'pathod')
-rw-r--r--pathod/pathod.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pathod/pathod.py b/pathod/pathod.py
index a8658361..8d57897b 100644
--- a/pathod/pathod.py
+++ b/pathod/pathod.py
@@ -144,6 +144,7 @@ class PathodHandler(tcp.BaseHandler):
path = req.path
http_version = req.http_version
headers = req.headers
+ first_line_format = req.first_line_format
clientcert = None
if self.clientcert:
@@ -167,6 +168,7 @@ class PathodHandler(tcp.BaseHandler):
sni=self.sni,
remote_address=self.address(),
clientcert=clientcert,
+ first_line_format=first_line_format
),
cipher=None,
)