# Ensure each subrequest has a shallow copy of headers_in so that the # parent request headers are not corrupted. Eliminates a problematic # optimization in the case of no request body. # # PR: 48359 # Submitted by: Jake Scott, wrowe, rpluem # Similar to: server/protocol.c r901578 # Index: server/protocol.c =================================================================== --- server/protocol.c (revision 921080) +++ server/protocol.c (working copy) @@ -1022,7 +1022,7 @@ rnew->status = HTTP_OK; - rnew->headers_in = r->headers_in; + rnew->headers_in = apr_table_copy(rnew->pool, r->headers_in); rnew->subprocess_env = apr_table_copy(rnew->pool, r->subprocess_env); rnew->headers_out = apr_table_make(rnew->pool, 5); rnew->err_headers_out = apr_table_make(rnew->pool, 5);