diff options
-rw-r--r-- | src/saml2/httputil.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/saml2/httputil.py b/src/saml2/httputil.py index d0dcd287..dbba7d41 100644 --- a/src/saml2/httputil.py +++ b/src/saml2/httputil.py @@ -62,10 +62,7 @@ class Response(object): message = mte.render(**argv) 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.encode()] + return [message.encode('utf-8')] elif isinstance(message, six.binary_type): return [message] else: |