saml: ensure LibertyProvider.metadata is always unicode

This commit is contained in:
Valentin Deniaud 2019-11-14 11:59:46 +01:00
parent 3d3df4e858
commit 55ec200c40
1 changed files with 1 additions and 1 deletions

View File

@ -406,7 +406,7 @@ class LibertyProvider(Service):
except requests.RequestException as e:
raise ValidationError(_('Retrieval of metadata failed: %s') % e)
else:
self.metadata = response.content
self.metadata = response.text
self.clean()
self.save()