From 9063f666b218a82e4bcd33b8a5758f5fda7cefdb Mon Sep 17 00:00:00 2001 From: "roberto@localhost.localdomain" Date: Wed, 28 Oct 2009 14:52:36 +0100 Subject: [PATCH] fix twisted module --- twuwsgi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twuwsgi.py b/twuwsgi.py index 5cec3d4c..a20400c0 100644 --- a/twuwsgi.py +++ b/twuwsgi.py @@ -51,9 +51,9 @@ class uWSGIClientProtocol(basic.LineReceiver): for hkey, hval in self.request.headers.getAllRawHeaders(): # use a list, probably it will be extended if hkey.lower() not in ('content-type'): - vars += self.build_uwsgi_var('HTTP_'+hkey.upper(),(','.join(hval)).replace('-','_')) + vars += self.build_uwsgi_var('HTTP_'+hkey.upper().replace('-','_'),','.join(hval)) else: - vars += self.build_uwsgi_var(hkey.upper(),(','.join(hval)).replace('-','_')) + vars += self.build_uwsgi_var(hkey.upper().replace('-','_'),','.join(hval)) vars += self.build_uwsgi_var('REQUEST_METHOD', self.request.method)