From c61c0700818296290d35c3e0c5c48111e9768bab Mon Sep 17 00:00:00 2001 From: dbandstra Date: Sat, 7 Nov 2020 15:27:38 -0800 Subject: [PATCH] fix value of GATEWAY_INTERFACE as per rfc3875 --- README.md | 2 +- jetforce/app/static.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 76bb222..aa9a22f 100644 --- a/README.md +++ b/README.md @@ -187,7 +187,7 @@ additional modification by the server.
GATEWAY_INTERFACE
CGI version (for compatability with RFC 3785).
- Example: "GCI/1.1" + Example: "CGI/1.1"
SERVER_PROTOCOL
diff --git a/jetforce/app/static.py b/jetforce/app/static.py index a0f8156..991e171 100644 --- a/jetforce/app/static.py +++ b/jetforce/app/static.py @@ -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.