| 5213 | } |
| 5214 | |
| 5215 | static int core_create_req(request_rec *r) |
| 5216 | { |
| 5217 | /* Alloc the config struct and the array of request notes in |
| 5218 | * a single block for efficiency |
| 5219 | */ |
| 5220 | core_request_config *req_cfg; |
| 5221 | |
| 5222 | req_cfg = apr_pcalloc(r->pool, sizeof(core_request_config) + |
| 5223 | sizeof(void *) * num_request_notes); |
| 5224 | req_cfg->notes = (void **)((char *)req_cfg + sizeof(core_request_config)); |
| 5225 | |
| 5226 | /* ### temporarily enable script delivery as the default */ |
| 5227 | req_cfg->deliver_script = 1; |
| 5228 | |
| 5229 | if (r->main) { |
| 5230 | core_request_config *main_req_cfg = (core_request_config *) |
| 5231 | ap_get_core_module_config(r->main->request_config); |
| 5232 | req_cfg->bb = main_req_cfg->bb; |
| 5233 | } |
| 5234 | else { |
| 5235 | req_cfg->bb = apr_brigade_create(r->pool, r->connection->bucket_alloc); |
| 5236 | } |
| 5237 | |
| 5238 | ap_set_core_module_config(r->request_config, req_cfg); |
| 5239 | |
| 5240 | return OK; |
| 5241 | } |
| 5242 | |
| 5243 | static int core_create_proxy_req(request_rec *r, request_rec *pr) |
| 5244 | { |
no test coverage detected