diff options
author | Jan-Philip Gehrcke <jgehrcke@googlemail.com> | 2016-10-14 16:38:13 +0200 |
---|---|---|
committer | Jan-Philip Gehrcke <jgehrcke@googlemail.com> | 2016-10-14 16:38:13 +0200 |
commit | 8909e7df1b335b40c0d4578cc55f9deaf52f325e (patch) | |
tree | e9e10c0453e94602670c6786984da0f707075090 /src/saml2/httputil.py | |
parent | ccb842d20b9a4a2334706a180a69a39136f37f08 (diff) | |
download | pysaml2-8909e7df1b335b40c0d4578cc55f9deaf52f325e.tar.gz |
example/sp-wsgi/sp.py: respond with bytes (enhance WSGI compliance)
Diffstat (limited to 'src/saml2/httputil.py')
-rw-r--r-- | src/saml2/httputil.py | 3 |
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] |