Skip to content

Commit 73e0644

Browse files
authored
Merge pull request #162 from mhindery/master
add decode to fix template containing b' prefix
2 parents be87165 + 0b9d6b7 commit 73e0644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djangosaml2/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def login(request,
211211
binding=binding)
212212
try:
213213
if PY3:
214-
saml_request = base64.b64encode(binary_type(request_xml, 'UTF-8'))
214+
saml_request = base64.b64encode(binary_type(request_xml, 'UTF-8')).decode('utf-8')
215215
else:
216216
saml_request = base64.b64encode(binary_type(request_xml))
217217

0 commit comments

Comments
 (0)