diff options
author | Wade 524 <u524@intrafile.com> | 2014-10-31 11:50:03 -0700 |
---|---|---|
committer | Wade 524 <u524@intrafile.com> | 2014-10-31 11:50:03 -0700 |
commit | ce18cd8ba40998c0654e697efcc0a0f018e45375 (patch) | |
tree | 70eeddc3c3c78f57ee4125485112c33e3abad21d /libmproxy | |
parent | 2c64b90a3d239c76bca4c334f89d7b53a965d35b (diff) | |
download | mitmproxy-ce18cd8ba40998c0654e697efcc0a0f018e45375.tar.gz mitmproxy-ce18cd8ba40998c0654e697efcc0a0f018e45375.tar.bz2 mitmproxy-ce18cd8ba40998c0654e697efcc0a0f018e45375.zip |
Fixing issue #392.
Diffstat (limited to 'libmproxy')
-rw-r--r-- | libmproxy/protocol/http.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index 3560f0bd..1472f2ca 100644 --- a/libmproxy/protocol/http.py +++ b/libmproxy/protocol/http.py @@ -251,7 +251,7 @@ class HTTPRequest(HTTPMessage): - authority-form (CONNECT example.com:443) Details: http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-25#section-5.3 - form_out: The request form which mitmproxy has send out to the + form_out: The request form which mitmproxy will send out to the destination timestamp_start: Timestamp indicating when request transmission started @@ -401,9 +401,8 @@ class HTTPRequest(HTTPMessage): form = form or self.form_out if form == "relative": - path = self.path if self.method != "OPTIONS" else "*" request_line = '%s %s HTTP/%s.%s' % ( - self.method, path, self.httpversion[0], self.httpversion[1] + self.method, self.path, self.httpversion[0], self.httpversion[1] ) elif form == "authority": request_line = '%s %s:%s HTTP/%s.%s' % ( |