Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Correctly handle bytes
  • Loading branch information
canni committed May 17, 2017
commit 2312d708bac3e2129e55b29518bc918cf8286a19
2 changes: 1 addition & 1 deletion djangosaml2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def login(request,
http_response = render(request, post_binding_form_template, {
'target_url': location,
'params': {
'SAMLRequest': base64.b64encode(request_xml),
'SAMLRequest': base64.b64encode(binary_type(request_xml)),
'RelayState': came_from,
},
})
Expand Down