Merge pull request #43 from dbandstra/fix-gateway_interface
fix value of GATEWAY_INTERFACE as per rfc3875
This commit is contained in:
commit
d2d1f63f7b
|
@ -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>
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue