From 3fbd52e3e6eed0062a50783db2b28fd40792acf7 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Mon, 11 Oct 2021 13:57:20 -0700 Subject: [PATCH] Add missing "HTTP_HOST" in wordpress-fpm-run test This avoids the following warning: PHP message: PHP Warning: Undefined array key "HTTP_HOST" in /var/www/html/wp-includes/functions.php on line 5880 --- test/tests/wordpress-fpm-run/run.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/tests/wordpress-fpm-run/run.sh b/test/tests/wordpress-fpm-run/run.sh index fbd939c1a..4d52500a7 100755 --- a/test/tests/wordpress-fpm-run/run.sh +++ b/test/tests/wordpress-fpm-run/run.sh @@ -42,6 +42,7 @@ fcgi-request() { -e SCRIPT_NAME="$url" \ -e SCRIPT_FILENAME=/var/www/html/"${url#/}" \ -e QUERY_STRING="$queryString" \ + -e HTTP_HOST='localhost' \ "$clientImage" \ -bind -connect fpm:9000 }