Fix CGI script handling

This commit is contained in:
Michael Lazar 2020-05-27 23:58:04 -04:00
parent 4ce3c0758a
commit ae262875ea
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ class StaticDirectoryApplication(JetforceApplication):
Execute the given file as a CGI script and return the script's stdout
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"
# Decode the stream as unicode so we can parse the status line