summaryrefslogtreecommitdiff
path: root/src/saml2/httputil.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/saml2/httputil.py')
-rw-r--r--src/saml2/httputil.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/saml2/httputil.py b/src/saml2/httputil.py
index 0901f7b0..0e7f32a6 100644
--- a/src/saml2/httputil.py
+++ b/src/saml2/httputil.py
@@ -62,6 +62,9 @@ class Response(object):
return [mte.render(**argv)]
else:
if isinstance(message, six.string_types):
+ # Note(JP): A WSGI app should always respond
+ # with bytes, so at this point the message should
+ # become encoded instead of passing a text object.
return [message]
elif isinstance(message, six.binary_type):
return [message]