Py3: Pass bytes to http Request and Response

This commit is contained in:
Shadab Zafar 2016-06-07 13:40:39 +05:30
parent 2ff5c789df
commit e187358e97

View File

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