From 37e4eae9e668453985d76b9c476637626714a106 Mon Sep 17 00:00:00 2001 From: Ian Holsman Date: Thu, 29 Nov 2001 21:09:31 +0000 Subject: [PATCH] r->headers_in is shared by original requests and components (make no sense copy them for components), but each component has its own r->pool. So once the first component set "Max-Forwards", it is in headers_in but the value could get lost with the first component's r->pool. Hence I sometimes see "Max-Forwards" has value like letter "l". Change it to use apr_table_set() fixed the problem. Submitted by: Jin Hong git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92253 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/mod_proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/proxy/mod_proxy.c b/modules/proxy/mod_proxy.c index adb13c6dbd..0a2880b0bf 100644 --- a/modules/proxy/mod_proxy.c +++ b/modules/proxy/mod_proxy.c @@ -382,7 +382,7 @@ static int proxy_handler(request_rec *r) /* set configured max-forwards */ maxfwd = conf->maxfwd; } - apr_table_setn(r->headers_in, "Max-Forwards", + apr_table_set(r->headers_in, "Max-Forwards", apr_psprintf(r->pool, "%ld", (maxfwd > 0) ? maxfwd : 0)); if ((rc = ap_setup_client_block(r, REQUEST_CHUNKED_ERROR))) -- 2.50.1