From e5e5548b8857a3b2ef92b7d6508c0c21a8816bd7 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Wed, 13 Apr 2016 00:17:46 -0400 Subject: [PATCH] [mod_extforward] reset cond_cache for scheme (fixes #1499) bug #1499 was mostly fixed in 05858f6c This patch additionally resets the cond_cache since scheme might change x-ref: "HTTPS env var should be "on" when using mod_extforward and the X-Forwarded-Proto header is set." https://redmine.lighttpd.net/issues/1499 --- NEWS | 1 + src/mod_extforward.c | 1 + 2 files changed, 2 insertions(+) diff --git a/NEWS b/NEWS index 51c8509d..c169e764 100644 --- a/NEWS +++ b/NEWS @@ -66,6 +66,7 @@ NEWS * [mod_cgi] always set QUERY_STRING (fixes #1339) * [mod_auth] send charset="UTF-8" in WWW-Authenticate (fixes #1468) * [mod_magnet] rename var for clarity (fixes #1483) + * [mod_extforward] reset cond_cache for scheme (fixes #1499) - 1.4.39 - 2016-01-02 * [core] fix memset_s call (fixes #2698) diff --git a/src/mod_extforward.c b/src/mod_extforward.c index fdb3c11f..4a56f552 100644 --- a/src/mod_extforward.c +++ b/src/mod_extforward.c @@ -352,6 +352,7 @@ static void ipstr_to_sockaddr(server *srv, const char *host, sock_addr *sock) { static void clean_cond_cache(server *srv, connection *con) { config_cond_cache_reset_item(srv, con, COMP_HTTP_REMOTE_IP); + config_cond_cache_reset_item(srv, con, COMP_HTTP_SCHEME); } URIHANDLER_FUNC(mod_extforward_uri_handler) {