From a812952aab1c889528ce941c99e0d8a6db05a754 Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Sat, 30 Dec 2017 21:32:34 -0500 Subject: [PATCH] http: fix v1 protocol tests with apache httpd < 2.4 The apache config used by tests was updated to use the SetEnvIf directive to set the Git-Protocol header in 19113a26b6 ("http: tell server that the client understands v1", 2017-10-16). Setting the Git-Protocol header is restricted to httpd >= 2.4, but mod_setenvif and the SetEnvIf directive work with lower versions, at least as far back as 2.0, according to the httpd documentation: https://httpd.apache.org/docs/2.0/mod/mod_setenvif.html Drop the restriction. Tested with httpd 2.2 and 2.4. Signed-off-by: Todd Zullinger Acked-by: Brandon Williams Signed-off-by: Junio C Hamano --- t/lib-httpd/apache.conf | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/t/lib-httpd/apache.conf b/t/lib-httpd/apache.conf index df19436314..724d9ae462 100644 --- a/t/lib-httpd/apache.conf +++ b/t/lib-httpd/apache.conf @@ -25,6 +25,9 @@ ErrorLog error.log LoadModule headers_module modules/mod_headers.so + + LoadModule setenvif_module modules/mod_setenvif.so + LockFile accept.lock @@ -67,9 +70,6 @@ LockFile accept.lock LoadModule unixd_module modules/mod_unixd.so - - LoadModule setenvif_module modules/mod_setenvif.so - PassEnv GIT_VALGRIND @@ -79,9 +79,7 @@ PassEnv ASAN_OPTIONS PassEnv GIT_TRACE PassEnv GIT_CONFIG_NOSYSTEM -= 2.4> - SetEnvIf Git-Protocol ".*" GIT_PROTOCOL=$0 - +SetEnvIf Git-Protocol ".*" GIT_PROTOCOL=$0 Alias /dumb/ www/ Alias /auth/dumb/ www/auth/dumb/ -- 2.32.0.93.g670b81a890