fix value of GATEWAY_INTERFACE as per rfc3875

This commit is contained in:
dbandstra 2020-11-07 15:27:38 -08:00
parent 1c0508d127
commit c61c070081
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.