Show More
@@ -107,7 +107,9 b' class HTTPResponse(httpclient.HTTPRespon' | |||||
107 |
|
107 | |||
108 | class HTTPConnection(httpclient.HTTPConnection): |
|
108 | class HTTPConnection(httpclient.HTTPConnection): | |
109 | response_class = HTTPResponse |
|
109 | response_class = HTTPResponse | |
110 |
def request(self, method, uri, body=None, headers= |
|
110 | def request(self, method, uri, body=None, headers=None): | |
|
111 | if headers is None: | |||
|
112 | headers = {} | |||
111 | if isinstance(body, httpsendfile): |
|
113 | if isinstance(body, httpsendfile): | |
112 | body.seek(0) |
|
114 | body.seek(0) | |
113 | httpclient.HTTPConnection.request(self, method, uri, body=body, |
|
115 | httpclient.HTTPConnection.request(self, method, uri, body=body, |
General Comments 0
You need to be logged in to leave comments.
Login now