mod_http2/backport-fix-build-errors-without-PROXY_CANONENC_NOENCODEDSLA.patch
2023-07-21 17:00:37 +08:00

25 lines
999 B
Diff

From 3e88d4b98a35634cd3eafa04e9ffb48b767e4d02 Mon Sep 17 00:00:00 2001
From: eaglegai <eaglegai@163.com>
Date: Fri, 21 Jul 2023 07:54:22 +0800
Subject: [PATCH] fix compilation error when using
PROXY_CANONENC_NOENCODEDSLASHENCODING
---
mod_http2/mod_proxy_http2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mod_http2/mod_proxy_http2.c b/mod_http2/mod_proxy_http2.c
index 8c0905f9..6e24dde4 100644
--- a/mod_http2/mod_proxy_http2.c
+++ b/mod_http2/mod_proxy_http2.c
@@ -158,8 +158,8 @@ static int proxy_http2_canon(request_rec *r, char *url)
search = r->args;
}
else {
+#ifdef PROXY_CANONENC_NOENCODEDSLASHENCODING
core_dir_config *d = ap_get_core_module_config(r->per_dir_config);
- #ifdef PROXY_CANONENC_NOENCODEDSLASHENCODING
int flags = d->allow_encoded_slashes && !d->decode_encoded_slashes ? PROXY_CANONENC_NOENCODEDSLASHENCODING : 0;
path = ap_proxy_canonenc_ex(r->pool, url, (int)strlen(url),