Skip to content

Commit 7368a49

Browse files
author
Bogdan Despotov
committed
Using the binary response content of requests in order to avoid the metadata xml being saved with incorrect encoding
1 parent 63d3165 commit 7368a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/saml2/mdstore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ def load(self, *args, **kwargs):
750750
"""
751751
response = self.http.send(self.url)
752752
if response.status_code == 200:
753-
_txt = response.text.encode("utf-8")
753+
_txt = response.content
754754
return self.parse_and_check_signature(_txt)
755755
else:
756756
logger.info("Response status: %s", response.status_code)

0 commit comments

Comments
 (0)