Fix CGI script handling
This commit is contained in:
parent
4ce3c0758a
commit
ae262875ea
|
@ -125,7 +125,7 @@ class StaticDirectoryApplication(JetforceApplication):
|
||||||
Execute the given file as a CGI script and return the script's stdout
|
Execute the given file as a CGI script and return the script's stdout
|
||||||
stream to the client.
|
stream to the client.
|
||||||
"""
|
"""
|
||||||
cgi_env = {k: v for k, v in environ.items() if k.isupper()}
|
cgi_env = {k: str(v) for k, v in environ.items() if k.isupper()}
|
||||||
cgi_env["GATEWAY_INTERFACE"] = "GCI/1.1"
|
cgi_env["GATEWAY_INTERFACE"] = "GCI/1.1"
|
||||||
|
|
||||||
# Decode the stream as unicode so we can parse the status line
|
# Decode the stream as unicode so we can parse the status line
|
||||||
|
|
Loading…
Reference in New Issue