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:
parent
1ae186a504
commit
f6266ba806
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue