mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
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 <useless file> to cURL tells it to keep cookies between 'sessions'.
This commit is contained in:
parent
42961ea755
commit
d1b7d4907f
1 changed files with 1 additions and 1 deletions
|
@ -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 \
|
||||
|
|
Loading…
Add table
Reference in a new issue