diff options
author | Bogdan Despotov <bogdan.despotov@cloudsigma.com> | 2017-07-03 14:59:33 +0300 |
---|---|---|
committer | Bogdan Despotov <bogdan.despotov@cloudsigma.com> | 2017-07-03 14:59:33 +0300 |
commit | 7368a49b9114153ba53c28e54d594fe49e5de310 (patch) | |
tree | c204bdd4097eb1d675643256192a6bb6056f6c36 /src/saml2/mdstore.py | |
parent | 63d316554075740906282eee5967dc7149e3fd6f (diff) | |
download | pysaml2-7368a49b9114153ba53c28e54d594fe49e5de310.tar.gz |
Using the binary response content of requests in order to avoid the metadata xml being saved with incorrect encoding
Diffstat (limited to 'src/saml2/mdstore.py')
-rw-r--r-- | src/saml2/mdstore.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saml2/mdstore.py b/src/saml2/mdstore.py index eff75c8b..60cd5a51 100644 --- a/src/saml2/mdstore.py +++ b/src/saml2/mdstore.py @@ -750,7 +750,7 @@ class MetaDataExtern(InMemoryMetaData): """ response = self.http.send(self.url) if response.status_code == 200: - _txt = response.text.encode("utf-8") + _txt = response.content return self.parse_and_check_signature(_txt) else: logger.info("Response status: %s", response.status_code) |