From f6266ba8064bbd5e0a73fa3b921624fd9ad551f0 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Fri, 26 Feb 2010 14:08:09 -0800 Subject: [PATCH] Add SERVER_PROTOCOL variable to wsgi environment. This turns out to be necessary for using cherrypy in a tornado WSGIContainer. --- tornado/wsgi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tornado/wsgi.py b/tornado/wsgi.py index 9f363e6d..f3bc7176 100644 --- a/tornado/wsgi.py +++ b/tornado/wsgi.py @@ -250,6 +250,7 @@ class WSGIContainer(object): "REMOTE_ADDR": request.remote_ip, "SERVER_NAME": host, "SERVER_PORT": port, + "SERVER_PROTOCOL": request.version, "wsgi.version": (1, 0), "wsgi.url_scheme": request.protocol, "wsgi.input": cStringIO.StringIO(request.body),