Add SERVER_PROTOCOL variable to wsgi environment. This turns out to be

necessary for using cherrypy in a tornado WSGIContainer.
This commit is contained in:
Ben Darnell 2010-02-26 14:08:09 -08:00
parent 1ae186a504
commit f6266ba806
1 changed files with 1 additions and 0 deletions

View 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),