diff options
author | Shadab Zafar <dufferzafar0@gmail.com> | 2016-06-07 13:40:39 +0530 |
---|---|---|
committer | Shadab Zafar <dufferzafar0@gmail.com> | 2016-06-08 16:17:00 +0530 |
commit | e187358e97f93ca8a1b3df4761a1edca5c4f5e59 (patch) | |
tree | 8f3d4653e18bdcfee026361c80403b10dc3d7645 /pathod | |
parent | 2ff5c789df09e8d101ded5312cd8071cd0cb0537 (diff) | |
download | mitmproxy-e187358e97f93ca8a1b3df4761a1edca5c4f5e59.tar.gz mitmproxy-e187358e97f93ca8a1b3df4761a1edca5c4f5e59.tar.bz2 mitmproxy-e187358e97f93ca8a1b3df4761a1edca5c4f5e59.zip |
Py3: Pass bytes to http Request and Response
Diffstat (limited to 'pathod')
-rw-r--r-- | pathod/language/http2.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pathod/language/http2.py b/pathod/language/http2.py index 45b2a104..e83fe9ad 100644 --- a/pathod/language/http2.py +++ b/pathod/language/http2.py @@ -190,7 +190,7 @@ class Response(_HTTP2Message): resp = http.Response( (2, 0), self.status_code.string(), - '', + b'', headers, body, ) @@ -271,11 +271,11 @@ class Request(_HTTP2Message): body = body.string() req = http.Request( - '', + b'', self.method.string(), - '', - '', - '', + b'', + b'', + b'', path, (2, 0), headers, |