You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduced by the refactoring of status/status_code in #495
Response calls the WSGI defined start_response callback with the integer status code directly.
According to the docs, the first argument must be a string not an integer.
The status argument is an HTTP "status" string like "200 OK" or "404 Not Found". That is, it is a string consisting of a Status-Code and a Reason-Phrase, in that order and separated by a single space, with no surrounding whitespace or other characters. (See RFC 2616, Section 6.1.1 for more information.) The string must not contain control characters, and must not be terminated with a carriage return, linefeed, or combination thereof.
Probably just needs something like:
name = httplib.responses.get(status_code, 'UNKNOWN')
status = "%d %s" % (status_code, name)
The text was updated successfully, but these errors were encountered:
Introduced by the refactoring of status/status_code in #495
Response calls the WSGI defined
start_response
callback with the integer status code directly.According to the docs, the first argument must be a string not an integer.
https://www.python.org/dev/peps/pep-0333/#the-start-response-callable
Probably just needs something like:
The text was updated successfully, but these errors were encountered: