On Tue, 29 Oct 2013 19:45:07 +0200, Derek Schwalenberg
<[email protected]> wrote:
I keep getting type errors for my status parameter in the start_response.
If I give it a tuple list it wants a byte string
TypeError: expected byte string object for status, value of type list
found
if I give it a byte string it wants a tuple list
TypeError: list of tuple values expected, value of type str found
'200 OK' seem to work fine though. I just can't figure out how to send a
401 status.
What does "it" here mean? The first parameter to start_response is the
status code, for example '200 OK' or '401 Not authorized', the second
parameter is a list of tuples being the extra headers to supply in the
HTTP header, for example [('Content-Type', 'text/html')]. Sounds like you
are mixing them up somehow?
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/groups/opt_out.