Closed GoogleCodeExporter closed 8 years ago
The simplest thing probably is to temporarily replace r->subprocess_env with
new table object and call ap_add_common_vars().
Then construct dictionary and put back r->subprocess_env.
If doing that, may as well pass through the full WSGI environ that handler
gets. So, also call ap_add_cgi_vars() as well.
There is other stuff as well which is done in wsgi_build_environment(), related
to SCRIPT_NAME and PATH_INFO though. The values
for these at auth stage may technically be different to what handler may get
and why they had been left out for now.
Original comment by Graham.Dumpleton@gmail.com
on 29 Oct 2008 at 11:03
Constructing environment into separate table would mean existing entries in
table left by some other module
would be ignored. Should actually make copy. Question is what would be able to
set subprocess_env entries at
that point. Can mod_rewrite do it at early Apache phases?
Original comment by Graham.Dumpleton@gmail.com
on 29 Oct 2008 at 11:08
HTTP headers now passed in CGI style in revision 1123 of trunk.
Original comment by Graham.Dumpleton@gmail.com
on 21 Nov 2008 at 9:40
Original comment by Graham.Dumpleton@gmail.com
on 6 Feb 2009 at 1:54
Version 3.0 of mod_wsgi now released with this change.
Original comment by Graham.Dumpleton@gmail.com
on 22 Nov 2009 at 2:51
Original issue reported on code.google.com by
Graham.Dumpleton@gmail.com
on 26 Mar 2008 at 9:50