From e5e62d9e8b426bef2c4b530d67a1130f685cb79a Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Mon, 2 Sep 2013 17:03:47 +0000 Subject: [PATCH] *) mod_filter: Add "change=no" as a proto-flag to FilterProtocol to remove a providers initial flags set at registration time. [Eric Covener] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1519475 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 4 ++++ modules/filters/mod_filter.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/CHANGES b/CHANGES index 46e4fe86c7..a7a5d58141 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,10 @@ -*- coding: utf-8 -*- Changes with Apache 2.5.0 + *) mod_filter: Add "change=no" as a proto-flag to FilterProtocol + to remove a providers initial flags set at registration time. + [Eric Covener] + *) mod_lua: Return a 500 error if a LuaHook* script doesn't return a numeric return code. [Eric Covener] diff --git a/modules/filters/mod_filter.c b/modules/filters/mod_filter.c index 2d8e8b6595..8fb872cdbf 100644 --- a/modules/filters/mod_filter.c +++ b/modules/filters/mod_filter.c @@ -368,6 +368,9 @@ static const char *filter_protocol(cmd_parms *cmd, void *CFG, const char *fname, if (!strcasecmp(arg, "change=yes")) { flags |= AP_FILTER_PROTO_CHANGE | AP_FILTER_PROTO_CHANGE_LENGTH; } + if (!strcasecmp(arg, "change=no")) { + flags &= ~(AP_FILTER_PROTO_CHANGE | AP_FILTER_PROTO_CHANGE_LENGTH); + } else if (!strcasecmp(arg, "change=1:1")) { flags |= AP_FILTER_PROTO_CHANGE; } -- 2.40.0