Fix logout session teardown

This commit is contained in:
lussierj committed 2026-07-28 14:47:46 +00:00
1 parent f181482463
commit 816da519dd
2 files changed
+13 -6

No files matched your search

+2 -1
View File
@@ -45,7 +45,8 @@ status_for() {
local body="${4:-}"
local args=(--silent --output /dev/null --write-out '%{http_code}' -X "${method}")
if [[ -n "${cookie_jar}" ]]; then
args+=(-b "${cookie_jar}")
# Read and update the jar so logout and refreshed cookies behave like a browser.
args+=(-b "${cookie_jar}" -c "${cookie_jar}")
fi
if [[ -n "${body}" ]]; then
args+=(-H 'Content-Type: application/json' --data "${body}")