Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert "Apache: do not pass subprocess environment variables (i.e. va…

…lues given by SetEnv/PassEnv directives) to backend processes through HTTP headers since we already pass this information through real environment variables."

This reverts commit 18dc96f.

Fixes issue #335.
  • Loading branch information...
commit 45168c98982732c4a74dde0060d04245107ec539 1 parent e632250
@FooBarWidget FooBarWidget authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 ext/apache2/Hooks.cpp
View
10 ext/apache2/Hooks.cpp
@@ -807,6 +807,16 @@ class Hooks {
}
}
+ // Add other environment variables.
+ const apr_array_header_t *env_arr;
+ apr_table_entry_t *env;
+
+ env_arr = apr_table_elts(r->subprocess_env);
+ env = (apr_table_entry_t*) env_arr->elts;
+ for (i = 0; i < env_arr->nelts; ++i) {
+ addHeader(headers, env[i].key, env[i].val);
+ }
+
// Now send the headers.
string buffer;
Please sign in to comment.
Something went wrong with that request. Please try again.