| 401 // remove some response headers, that were previously set by ObjectType |
401 // remove some response headers, that were previously set by ObjectType |
| 402 // or other SAFs |
402 // or other SAFs |
| 403 pblock_removekey(pb_key_content_type, rq->srvhdrs); |
403 pblock_removekey(pb_key_content_type, rq->srvhdrs); |
| 404 |
404 |
| 405 ProxyRequest *proxy = malloc(sizeof(ProxyRequest)); |
405 ProxyRequest *proxy = malloc(sizeof(ProxyRequest)); |
| |
406 if(!proxy) { |
| |
407 return REQ_ABORTED; |
| |
408 } |
| |
409 memset(proxy, 0, sizeof(ProxyRequest)); |
| 406 proxy->sn = sn; |
410 proxy->sn = sn; |
| 407 proxy->rq = rq; |
411 proxy->rq = rq; |
| 408 proxy->request_header_rewrite = pblock_create_pool(sn->pool, 16); |
412 proxy->request_header_rewrite = pblock_create_pool(sn->pool, 16); |
| 409 proxy->response_header_rewrite = pblock_create_pool(sn->pool, 16); |
413 proxy->response_header_rewrite = pblock_create_pool(sn->pool, 16); |
| 410 proxy->response_started = 0; |
414 proxy->response_started = 0; |