##// END OF EJS Templates
keepalive: reorder header precedence...
Gregory Szorc -
r30463:bc0def54 default
parent child Browse files
Show More
@@ -332,10 +332,9 b' class KeepAliveHandler(object):'
332 def _start_transaction(self, h, req):
332 def _start_transaction(self, h, req):
333 # What follows mostly reimplements HTTPConnection.request()
333 # What follows mostly reimplements HTTPConnection.request()
334 # except it adds self.parent.addheaders in the mix.
334 # except it adds self.parent.addheaders in the mix.
335 headers = req.headers.copy()
335 headers = dict(self.parent.addheaders)
336 if sys.version_info >= (2, 4):
336 headers.update(req.headers)
337 headers.update(req.unredirected_hdrs)
337 headers.update(req.unredirected_hdrs)
338 headers.update(self.parent.addheaders)
339 headers = dict((n.lower(), v) for n, v in headers.items())
338 headers = dict((n.lower(), v) for n, v in headers.items())
340 skipheaders = {}
339 skipheaders = {}
341 for n in ('host', 'accept-encoding'):
340 for n in ('host', 'accept-encoding'):
General Comments 0
You need to be logged in to leave comments. Login now