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.
This commit is contained in:
Johannes Weiss authored and Cory Benfield committed 2019-10-13 11:28:09 +01:00
1 parent 3c9bab0f50
commit e540583b70
1 file changed
+2 -1
+2 -1
View File
@@ -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() {