From e540583b70c640dfcf8bc9cb7dfc7220b37b9fee Mon Sep 17 00:00:00 2001 From: Johannes Weiss Date: Sun, 13 Oct 2019 11:28:09 +0100 Subject: [PATCH] IntegrationTests: support more curl versions (#1163) Motivation: Some curl versions need a hostname even when connecting to UDS. Modifications: Always add a host name. Result: More compatibility. --- IntegrationTests/tests_01_http/defines.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IntegrationTests/tests_01_http/defines.sh b/IntegrationTests/tests_01_http/defines.sh index b8da10644..8f4c287c2 100644 --- a/IntegrationTests/tests_01_http/defines.sh +++ b/IntegrationTests/tests_01_http/defines.sh @@ -120,7 +120,8 @@ function start_server() { tmp_server_pid=$(get_server_pid "$token") echo "local token_open_fds" >> "$token" echo "token_open_fds='$(get_number_of_open_fds_for_pid "$tmp_server_pid")'" >> "$token" - do_curl "$token" "http://$maybe_host:$curl_port/dynamic/pid" + local curl_host=${maybe_host:-localhost} + do_curl "$token" "http://$curl_host:$curl_port/dynamic/pid" } function get_htdocs() {