From dcb9464bbed505e9ab904d03410ea774f9f63018 Mon Sep 17 00:00:00 2001 From: Philipp Saveliev Date: Tue, 3 Jun 2014 03:05:27 +0400 Subject: [PATCH] fix HTTP-violating excess whitespace in write_error output --- gunicorn/util.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gunicorn/util.py b/gunicorn/util.py index 9f6b79c9..9ef79a3a 100644 --- a/gunicorn/util.py +++ b/gunicorn/util.py @@ -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'))