Store extra_headers from get_host_info

The extra_headers must be stored to be set by send_host.

issue4704
review15191002
This commit is contained in:
Cédric Krier committed 2015-04-18 13:49:50 +02:00
1 parent f48d643e8d
commit bd0e335a16
1 file changed
+1 -1
+1 -1
View File
@@ -178,7 +178,7 @@ class Transport(xmlrpclib.Transport, xmlrpclib.SafeTransport):
def make_connection(self, host):
if self._connection and host == self._connection[0]:
return self._connection[1]
host, extra_headers, x509 = self.get_host_info(host)
host, self._extra_headers, x509 = self.get_host_info(host)
ca_certs = self.__ca_certs
cert_reqs = ssl.CERT_REQUIRED if ca_certs else ssl.CERT_NONE