##// END OF EJS Templates
py3: handle keyword arguments correctly in keepalive.py...
Pulkit Goyal -
r35365:03112a2c default
parent child Browse files
Show More
@@ -322,7 +322,7 class KeepAliveHandler(object):
322 322 data = urllibcompat.getdata(req)
323 323 h.putrequest(
324 324 req.get_method(), urllibcompat.getselector(req),
325 **skipheaders)
325 **pycompat.strkwargs(skipheaders))
326 326 if 'content-type' not in headers:
327 327 h.putheader('Content-type',
328 328 'application/x-www-form-urlencoded')
@@ -331,7 +331,7 class KeepAliveHandler(object):
331 331 else:
332 332 h.putrequest(
333 333 req.get_method(), urllibcompat.getselector(req),
334 **skipheaders)
334 **pycompat.strkwargs(skipheaders))
335 335 except socket.error as err:
336 336 raise urlerr.urlerror(err)
337 337 for k, v in headers.items():
@@ -366,8 +366,8 class HTTPResponse(httplib.HTTPResponse)
366 366 def __init__(self, sock, debuglevel=0, strict=0, method=None):
367 367 extrakw = {}
368 368 if not pycompat.ispy3:
369 extrakw['strict'] = True
370 extrakw['buffering'] = True
369 extrakw[r'strict'] = True
370 extrakw[r'buffering'] = True
371 371 httplib.HTTPResponse.__init__(self, sock, debuglevel=debuglevel,
372 372 method=method, **extrakw)
373 373 self.fileno = sock.fileno
General Comments 0
You need to be logged in to leave comments. Login now