1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

Sub-requests have to have a value for their request_config structure,

or we'll seg-fault.  This should set the sub-request's request_config
structure to the same exact same structure as the main request is using.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86655 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan Bloom
2000-10-18 22:14:18 +00:00
parent 2441a2aa49
commit 92451206d5

View File

@@ -843,7 +843,11 @@ AP_DECLARE(request_rec *) ap_sub_req_method_uri(const char *method,
rnew->request_time = r->request_time;
rnew->connection = r->connection;
rnew->server = r->server;
rnew->request_config = ap_create_request_config(rnew->pool);
ap_set_module_config(rnew->request_config, &core_module,
ap_get_module_config(r->request_config, &core_module));
rnew->htaccess = r->htaccess;
rnew->per_dir_config = r->server->lookup_defaults;
rnew->allowed_methods = ap_make_method_list(rnew->pool, 2);
@@ -941,7 +945,11 @@ AP_DECLARE(request_rec *) ap_sub_req_lookup_file(const char *new_file,
rnew->request_time = r->request_time;
rnew->connection = r->connection;
rnew->server = r->server;
rnew->request_config = ap_create_request_config(rnew->pool);
ap_set_module_config(rnew->request_config, &core_module,
ap_get_module_config(r->request_config, &core_module));
rnew->htaccess = r->htaccess;
rnew->chunked = r->chunked;
rnew->allowed_methods = ap_make_method_list(rnew->pool, 2);