adjust to netlib changes

This commit is contained in:
Maximilian Hils 2015-09-21 18:39:37 +02:00
parent 6661ad3143
commit 2da4aaf1ed
2 changed files with 9 additions and 1 deletions

View File

@ -1,2 +1,10 @@
[run]
branch = True
[report]
show_missing = True
include = *libpathod*
exclude_lines =
pragma: nocover
pragma: no cover
raise NotImplementedError()

View File

@ -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(