equal
deleted
inserted
replaced
244 self.send(b'%s: %s\r\n' % header) |
244 self.send(b'%s: %s\r\n' % header) |
245 self.send(b'\r\n') |
245 self.send(b'\r\n') |
246 |
246 |
247 # majority of the following code is duplicated from |
247 # majority of the following code is duplicated from |
248 # httplib.HTTPConnection as there are no adequate places to |
248 # httplib.HTTPConnection as there are no adequate places to |
249 # override functions to provide the needed functionality |
249 # override functions to provide the needed functionality. |
250 # strict was removed in Python 3.4. |
250 |
251 kwargs = {} |
251 res = self.response_class(self.sock, method=self._method) |
252 if not pycompat.ispy3: |
|
253 kwargs[b'strict'] = self.strict |
|
254 |
|
255 res = self.response_class(self.sock, method=self._method, **kwargs) |
|
256 |
252 |
257 while True: |
253 while True: |
258 version, status, reason = res._read_status() |
254 version, status, reason = res._read_status() |
259 if status != httplib.CONTINUE: |
255 if status != httplib.CONTINUE: |
260 break |
256 break |