From e187358e97f93ca8a1b3df4761a1edca5c4f5e59 Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Tue, 7 Jun 2016 13:40:39 +0530 Subject: Py3: Pass bytes to http Request and Response --- pathod/language/http2.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pathod') 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, -- cgit v1.2.3