From e76749fe918f58c453aab77f0c53ac0342afdadf Mon Sep 17 00:00:00 2001
From: Mark Sapiro <mark@msapiro.net>
Date: Sat, 27 Jan 2018 17:45:22 -0800
Subject: Added more environment variables to those passed to CGIs.

---
 NEWS         | 3 +++
 src/common.c | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/NEWS b/NEWS
index 15465943..c31e4f11 100644
--- a/NEWS
+++ b/NEWS
@@ -26,6 +26,9 @@ Here is a history of user visible changes to Mailman.
 
   Bug fixes and other patches
 
+    - Added a few more environment variables to the list of those passed
+      to CGIs to support an nginx/uwsgi configuration.  (LP #1744739)
+
     - Mailman 2.1.22 introduced a Python 2.7 dependency that could affect
       bin/arch processing a message without a valid Date: header.  The
       dependency has been removed.  (LP: #1740543)
diff --git a/src/common.c b/src/common.c
index 94418892..585b1e9b 100644
--- a/src/common.c
+++ b/src/common.c
@@ -192,6 +192,12 @@ static char* keepenvars[] = {
         "SERVER_NAME=",
         "SERVER_PORT=",
         "USER=",
+        "CONTENT_LENGTH=",
+        "DOCUMENT_ROOT=",
+        "SERVER_PROTOCOL=",
+        "REQUEST_SCHEME=",
+        "HTTPS=",
+        "REMOTE_PORT=",
         NULL
 };
 
-- 
cgit v1.2.3