mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 16:58:27 -04:00
Add debug output to auth url fetch
This commit is contained in:
@@ -239,6 +239,7 @@ get_auth_url() {
|
|||||||
local scope
|
local scope
|
||||||
# Call to get manifests and extract www-authenticate header
|
# Call to get manifests and extract www-authenticate header
|
||||||
auth_header=$(curl -sLI ${CURL_NOISE_LEVEL} "${1}/${2}" | grep -i www-authenticate | tr -d '\r')
|
auth_header=$(curl -sLI ${CURL_NOISE_LEVEL} "${1}/${2}" | grep -i www-authenticate | tr -d '\r')
|
||||||
|
write_debug "${auth_header}"
|
||||||
if [[ -n "${auth_header}" ]]; then
|
if [[ -n "${auth_header}" ]]; then
|
||||||
# Extract realm URL from www-authenticate header
|
# Extract realm URL from www-authenticate header
|
||||||
realm_url=$(echo "$auth_header" | grep -oP 'realm="\K[^"]+')
|
realm_url=$(echo "$auth_header" | grep -oP 'realm="\K[^"]+')
|
||||||
|
|||||||
Reference in New Issue
Block a user