diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-21 18:39:37 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-21 18:39:37 +0200 |
commit | 2da4aaf1ede8310bb14c22e82248002b97b5f3e5 (patch) | |
tree | 7051a397e51130b7482b2c5d60304435c040d79e | |
parent | 6661ad3143254f2d616e625e6a9092974cc60842 (diff) | |
download | mitmproxy-2da4aaf1ede8310bb14c22e82248002b97b5f3e5.tar.gz mitmproxy-2da4aaf1ede8310bb14c22e82248002b97b5f3e5.tar.bz2 mitmproxy-2da4aaf1ede8310bb14c22e82248002b97b5f3e5.zip |
adjust to netlib changes
-rw-r--r-- | .coveragerc | 8 | ||||
-rw-r--r-- | libpathod/protocols/http.py | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/.coveragerc b/.coveragerc index 27a4aa3d..7e978294 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,2 +1,10 @@ +[run] +branch = True + [report] +show_missing = True include = *libpathod* +exclude_lines = + pragma: nocover + pragma: no cover + raise NotImplementedError() diff --git a/libpathod/protocols/http.py b/libpathod/protocols/http.py index 0ed6c01e..1f1765cb 100644 --- a/libpathod/protocols/http.py +++ b/libpathod/protocols/http.py @@ -23,7 +23,7 @@ class HTTPProtocol(object): msg="Access denied: web interface disabled" ) lg("app: %s %s" % (method, path)) - req = wsgi.Request("http", method, path, headers, body) + req = wsgi.Request("http", method, path, b"HTTP/1.1", headers, body) flow = wsgi.Flow(self.pathod_handler.address, req) sn = self.pathod_handler.connection.getsockname() a = wsgi.WSGIAdaptor( |