mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #772 from fillest/master
fix HTTP-violating excess whitespace in write_error output
This commit is contained in:
commit
545da3dbb6
@ -337,8 +337,7 @@ def write_error(sock, status_int, reason, mesg):
|
||||
Content-Type: text/html\r
|
||||
Content-Length: %d\r
|
||||
\r
|
||||
%s
|
||||
""") % (str(status_int), reason, len(html), html)
|
||||
%s""") % (str(status_int), reason, len(html), html)
|
||||
write_nonblock(sock, http.encode('latin1'))
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user