From: richard Date: Fri, 11 Dec 2009 22:08:23 +0000 (+0000) Subject: Fix WSGI response code (thanks Peter Pöml) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1928db090770171724a2b16ce637b6b74169f27b;p=roundup.git Fix WSGI response code (thanks Peter Pöml) git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4407 57a73879-2fb5-44c3-a270-3262357dd7e2 --- 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: