Skip to content

Commit 0b9d6b7

Browse files
author
Mathieu Hinderyckx
committed
add decode to fix template containing b' prefix
1 parent 6439697 commit 0b9d6b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

djangosaml2/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def login(request,
203203
binding=binding)
204204
try:
205205
if PY3:
206-
saml_request = base64.b64encode(binary_type(request_xml, 'UTF-8'))
206+
saml_request = base64.b64encode(binary_type(request_xml, 'UTF-8')).decode('utf-8')
207207
else:
208208
saml_request = base64.b64encode(binary_type(request_xml))
209209

0 commit comments

Comments
 (0)