From 1928db090770171724a2b16ce637b6b74169f27b Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 11 Dec 2009 22:08:23 +0000 Subject: [PATCH] =?utf8?q?Fix=20WSGI=20response=20code=20(thanks=20Peter?= =?utf8?q?=20P=C3=B6ml)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4407 57a73879-2fb5-44c3-a270-3262357dd7e2 --- CHANGES.txt | 1 + doc/acknowledgements.txt | 1 + roundup/cgi/wsgi_handler.py | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 37f6709..4d08af6 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -35,6 +35,7 @@ Fixes: fix mailgw to use Register permission, fixes issue2550599 - Fix styling of calendar to make it more usable, fixes issue2550608 - Fix typo in email section of user guide, fixes issue2550607 +- Fix WSGI response code (thanks Peter Pöml) 2009-10-09 1.4.10 (r4374) diff --git a/doc/acknowledgements.txt b/doc/acknowledgements.txt index 744e4a3..63ff2ce 100644 --- a/doc/acknowledgements.txt +++ b/doc/acknowledgements.txt @@ -90,6 +90,7 @@ Patrick Ohly, Luke Opperman, Eddie Parker, Will Partain, +Peter Pöml, Ewout Prangsma, Marcus Priesch, Bernhard Reiter, diff --git a/roundup/cgi/wsgi_handler.py b/roundup/cgi/wsgi_handler.py index 27bc890..2344e01 100644 --- a/roundup/cgi/wsgi_handler.py +++ b/roundup/cgi/wsgi_handler.py @@ -73,9 +73,9 @@ class RequestDispatcher(object): def start_response(self, headers, response_code): """Set HTTP response code""" - description = BaseHTTPRequestHandler.responses[response_code] + message, explain = BaseHTTPRequestHandler.responses[response_code] self.__wfile = self.__start_response('%d %s'%(response_code, - description), headers) + message), headers) def get_wfile(self): if self.__wfile is None: -- 2.30.2