Merge branch 'master' of github.com:michael-lazar/jetforce

This commit is contained in:
Michael Lazar 2020-11-29 17:50:50 -05:00
commit 887343de3c
2 changed files with 2 additions and 2 deletions

View File

@ -187,7 +187,7 @@ additional modification by the server.
<dt>GATEWAY_INTERFACE</dt> <dt>GATEWAY_INTERFACE</dt>
<dd> <dd>
CGI version (for compatability with RFC 3785).<br> CGI version (for compatability with RFC 3785).<br>
<em>Example: "GCI/1.1"</em> <em>Example: "CGI/1.1"</em>
</dd> </dd>
<dt>SERVER_PROTOCOL</dt> <dt>SERVER_PROTOCOL</dt>

View File

@ -149,7 +149,7 @@ class StaticDirectoryApplication(JetforceApplication):
stream to the client. stream to the client.
""" """
cgi_env = {k: str(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"] = "CGI/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
# Use surrogateescape to preserve any non-UTF8 byte sequences. # Use surrogateescape to preserve any non-UTF8 byte sequences.