From ce9409a3970e5b29d4825f6ac4f02764d50ddfd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 19 Jan 2009 12:32:37 +0000 Subject: [PATCH] - Do not pass Proxy-Connection: header from client to backend http server in mod_proxy (#1877) git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2372 152afb58-edef-0310-8abb-c4023f1b3aa9 --- NEWS | 1 + src/mod_proxy.c | 1 + 2 files changed, 2 insertions(+) diff --git a/NEWS b/NEWS index 7ac8f805..6a9d9edd 100644 --- a/NEWS +++ b/NEWS @@ -24,6 +24,7 @@ NEWS * Use FD_CLOEXEC if possible (fixes #1821) * Optimized buffer usage in mod_proxy (fixes #1850) * Fix uninitialized value in time struct after strptime + * Do not pass Proxy-Connection: header from client to backend http server in mod_proxy (#1877) - 1.4.20 - 2008-09-30 diff --git a/src/mod_proxy.c b/src/mod_proxy.c index 85a3581b..92549e2f 100644 --- a/src/mod_proxy.c +++ b/src/mod_proxy.c @@ -454,6 +454,7 @@ static int proxy_create_env(server *srv, handler_ctx *hctx) { if (ds->value->used && ds->key->used) { if (buffer_is_equal_string(ds->key, CONST_STR_LEN("Connection"))) continue; + if (buffer_is_equal_string(ds->key, CONST_STR_LEN("Proxy-Connection"))) continue; buffer_append_string_buffer(b, ds->key); buffer_append_string_len(b, CONST_STR_LEN(": "));