]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Add SERVER_PROTOCOL variable to wsgi environment. This turns out to be
authorBen Darnell <bdarnell@beaker.local>
Fri, 26 Feb 2010 22:08:09 +0000 (14:08 -0800)
committerBen Darnell <bdarnell@beaker.local>
Fri, 26 Feb 2010 22:08:09 +0000 (14:08 -0800)
necessary for using cherrypy in a tornado WSGIContainer.

tornado/wsgi.py

index 9f363e6deef03324224d0aeb3cfef10921444d6b..f3bc71767bf74f8cc2b7fc426186098a9fe340ff 100644 (file)
@@ -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),