From d1b7d4907f5478cec0d2e8d4b95bc622e9ff6a88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sun, 25 Feb 2024 22:38:15 +0100 Subject: [PATCH] When testing for app page access, reuse cookies between requests. cURL --location will follow redirects, but by default won't reuse cookies. Some apps, like Jackett, might add authentication cookies in a chain of redirections Passing --cookie to cURL tells it to keep cookies between 'sessions'. --- lib/tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tests.sh b/lib/tests.sh index 872e475..ef647b0 100644 --- a/lib/tests.sh +++ b/lib/tests.sh @@ -268,7 +268,7 @@ _VALIDATE_THAT_APP_CAN_BE_ACCESSED () { log_debug "Running curl $check_domain$curl_check_path" # Call cURL to try to access to the URL of the app - LXC_EXEC "curl --location --insecure --silent --show-error \ + LXC_EXEC "curl --location --insecure --silent --show-error --cookie /dev/null \ --header 'Host: $check_domain' \ --resolve $DOMAIN:80:$LXC_IP \ --resolve $DOMAIN:443:$LXC_IP \