From bd0e335a16e26a144e9c721e4611ef16ba70113b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 18 Apr 2015 13:49:50 +0200 Subject: [PATCH] Store extra_headers from get_host_info The extra_headers must be stored to be set by send_host. issue4704 review15191002 --- tryton/jsonrpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/jsonrpc.py b/tryton/jsonrpc.py index 42a8ee8cd6..56fd4dd066 100644 --- a/tryton/jsonrpc.py +++ b/tryton/jsonrpc.py @@ -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