fix twisted module

This commit is contained in:
roberto@localhost.localdomain
2009-10-28 14:52:36 +01:00
parent b44f46614e
commit 9063f666b2
+2 -2
View File
@@ -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)