mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-07-06 04:55:22 +02:00
request_failure hook: added http response headers as new parameter
This commit is contained in:
+2
-1
@@ -522,7 +522,8 @@ http_request() {
|
||||
# An exclusive hook for the {1}-request error might be useful (e.g., for sending an e-mail to admins)
|
||||
if [[ -n "${HOOK}" ]] && [[ "${HOOK_CHAIN}" != "yes" ]]; then
|
||||
errtxt="$(cat ${tempcont})"
|
||||
"${HOOK}" "request_failure" "${statuscode}" "${errtxt}" "${1}"
|
||||
errheaders="$(cat ${tempheaders})"
|
||||
"${HOOK}" "request_failure" "${statuscode}" "${errtxt}" "${1}" "${errheaders}"
|
||||
fi
|
||||
|
||||
rm -f "${tempcont}"
|
||||
|
||||
Reference in New Issue
Block a user