Skip to content

Commit 4a05573

Browse files
committed
Fix python3 compatibility
1 parent 726d39f commit 4a05573

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
@@ -193,7 +193,7 @@ def login(request,
193193
http_response = render(request, post_binding_form_template, {
194194
'target_url': location,
195195
'params': {
196-
'SAMLRequest': base64.b64encode(binary_type(request_xml)),
196+
'SAMLRequest': base64.b64encode(binary_type(request_xml, 'UTF-8')),
197197
'RelayState': came_from,
198198
},
199199
})

0 commit comments

Comments
 (0)