From ae262875ea5f586cfdcb01b74ea86b8865a60d54 Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Wed, 27 May 2020 23:58:04 -0400 Subject: [PATCH] Fix CGI script handling --- jetforce/app/static.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetforce/app/static.py b/jetforce/app/static.py index b86d162..891c4a8 100644 --- a/jetforce/app/static.py +++ b/jetforce/app/static.py @@ -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