24 lines
1.2 KiB
Diff
24 lines
1.2 KiB
Diff
Index: mod_fcgid-2.3.9/modules/fcgid/mod_fcgid.c
|
|
===================================================================
|
|
--- mod_fcgid-2.3.9.orig/modules/fcgid/mod_fcgid.c
|
|
+++ mod_fcgid-2.3.9/modules/fcgid/mod_fcgid.c
|
|
@@ -155,9 +155,15 @@ static void fcgid_add_cgi_vars(request_r
|
|
* consistent with legacy mod_fcgid behavior and mod_fastcgi
|
|
* prior to 2.4.7
|
|
*/
|
|
- apr_table_setn(r->subprocess_env, *hdr, val);
|
|
- /* standard munging of header name (upcase, HTTP_, etc.) */
|
|
- apr_table_setn(r->subprocess_env, http2env(r->pool, *hdr), val);
|
|
+ /* boo#988492 httpoxy don't set HTTP_PROXY */
|
|
+ if ( strcasecmp(*hdr, "HTTP_PROXY") != 0 && strcasecmp(*hdr, "HTTP-PROXY") != 0) {
|
|
+ apr_table_setn(r->subprocess_env, *hdr, val);
|
|
+ }
|
|
+ /* boo#988492 httpoxy don't set HTTP_PROXY */
|
|
+ if ( strcasecmp(*hdr, "PROXY") != 0 ) {
|
|
+ /* standard munging of header name (upcase, HTTP_, etc.) */
|
|
+ apr_table_setn(r->subprocess_env, http2env(r->pool, *hdr), val);
|
|
+ }
|
|
}
|
|
}
|
|
}
|