mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
mod_proxy: Follow up to r1901485: Don't shadow upper 'val' variable.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1901486 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -4044,9 +4044,9 @@ PROXY_DECLARE(int) ap_proxy_create_hdrbrgd(apr_pool_t *p,
|
|||||||
*/
|
*/
|
||||||
if (do_100_continue) {
|
if (do_100_continue) {
|
||||||
/* Add the Expect header if not already there. */
|
/* Add the Expect header if not already there. */
|
||||||
const char *val = apr_table_get(r->headers_in, "Expect");
|
if (!(val = apr_table_get(r->headers_in, "Expect"))
|
||||||
if (!val || (ap_cstr_casecmp(val, "100-Continue") != 0 /* fast path */
|
|| (ap_cstr_casecmp(val, "100-Continue") != 0 /* fast path */
|
||||||
&& !ap_find_token(r->pool, val, "100-Continue"))) {
|
&& !ap_find_token(r->pool, val, "100-Continue"))) {
|
||||||
apr_table_mergen(r->headers_in, "Expect", "100-Continue");
|
apr_table_mergen(r->headers_in, "Expect", "100-Continue");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user