Projet

Général

Profil

0003-astregs-use-remove_first_bytes_for_xml-50260.patch

Benjamin Dauvergne, 29 janvier 2021 19:45

Télécharger (1,06 ko)

Voir les différences:

Subject: [PATCH 3/3] astregs: use remove_first_bytes_for_xml (#50260)

 passerelle/apps/astregs/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
passerelle/apps/astregs/models.py
330 330

  
331 331
    def get_client(self, wsdl_name):
332 332
        url = urlparse.urljoin(self.wsdl_base_url, '%s?wsdl' % wsdl_name)
333
        client = self.soap_client(wsdl_url=url)
333
        client = self.soap_client(wsdl_url=url, transport_kwargs={'remove_first_bytes_for_xml': True})
334 334
        parsed_wsdl_address = urlparse.urlparse(client.service._binding_options['address'])
335 335
        parsed_real_address = urlparse.urlparse(self.wsdl_base_url)
336 336
        client.service._binding_options['address'] = urlparse.urlunparse(
337
-