Skip to content

Commit 0b9d6b7

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

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
@@ -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)