Merge pull request #43 from dbandstra/fix-gateway_interface

fix value of GATEWAY_INTERFACE as per rfc3875
This commit is contained in:
Michael Lazar 2020-11-07 18:42:03 -05:00 committed by GitHub
commit d2d1f63f7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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