From e0ed7699ca1258414a99812720f168e14a6ca219 Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Tue, 28 Jun 2016 13:46:46 +0530 Subject: [PATCH] Handle case when scheme is None --- netlib/http/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlib/http/request.py b/netlib/http/request.py index 01801d429..b64ccc51a 100644 --- a/netlib/http/request.py +++ b/netlib/http/request.py @@ -28,7 +28,7 @@ class RequestData(message.MessageData): self.first_line_format = first_line_format self.method = method - self.scheme = scheme + self.scheme = scheme or b'' self.host = host self.port = port self.path = path