changeset 1538:e051e6f51ade

fix type error in twisted request
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 12 Sep 2006 19:34:28 +0200
parents dfdc636e0030
children c92c8e5d68e3
files MoinMoin/request/TWISTED.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/request/TWISTED.py	Tue Sep 12 19:25:17 2006 +0200
+++ b/MoinMoin/request/TWISTED.py	Tue Sep 12 19:34:28 2006 +0200
@@ -117,7 +117,7 @@
         st_header, other_headers = headers[0], headers[1:]
         status = st_header.split(':', 1)[1].lstrip()
         status_code, status_msg = status.split(' ', 1)
-        self.twistd.setResponseCode(status_code, status_msg)
+        self.twistd.setResponseCode(int(status_code), status_msg)
         for header in other_headers:
             key, value = header.split(':', 1)
             value = value.lstrip()