mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-11-22 03:13:39 +00:00
pass custom apache variables via SetEnv
This commit is contained in:
@@ -392,6 +392,13 @@ static int uwsgi_handler(request_rec *r) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* environment variables */
|
||||
headers = apr_table_elts(r->subprocess_env);
|
||||
h = (apr_table_entry_t*) headers->elts;
|
||||
for (i = 0; i < headers->nelts; ++i) {
|
||||
vecptr = uwsgi_add_var(uwsgi_vars, vecptr, h[i].key, h[i].val, &pkt_size) ;
|
||||
}
|
||||
|
||||
|
||||
uwsgi_vars[0].iov_base = pkt_header;
|
||||
|
||||
Reference in New Issue
Block a user