fix HTTP-violating excess whitespace in write_error output

This commit is contained in:
Philipp Saveliev 2014-06-03 03:05:27 +04:00
parent ae14150cad
commit dcb9464bbe

View File

@ -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'))