summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBogdan Despotov <bogdan.despotov@cloudsigma.com>2017-07-17 13:31:46 +0300
committerBogdan Despotov <bogdan.despotov@cloudsigma.com>2017-07-17 13:31:46 +0300
commit9de2347f231913371b7911d4197d48162a53df32 (patch)
tree97682d29fba5425a75c151664f585cc63d8fb23c /src
parent7ea88803b6a785e0f4ea51463ae85c5fa1df3598 (diff)
downloadpysaml2-9de2347f231913371b7911d4197d48162a53df32.tar.gz
Added certificate file and referenced it in the corresponding test. Patched MetaDataMDX to avoid same issue there
Diffstat (limited to 'src')
-rw-r--r--src/saml2/mdstore.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saml2/mdstore.py b/src/saml2/mdstore.py
index 60cd5a51..72825ea8 100644
--- a/src/saml2/mdstore.py
+++ b/src/saml2/mdstore.py
@@ -814,7 +814,7 @@ class MetaDataMDX(InMemoryMetaData):
response = requests.get(mdx_url, headers={
'Accept': SAML_METADATA_CONTENT_TYPE})
if response.status_code == 200:
- _txt = response.text.encode("utf-8")
+ _txt = response.content
if self.parse_and_check_signature(_txt):
return self.entity[item]