Fix logout session teardown
This commit is contained in:
1 parent
f181482463
commit
816da519dd
2 files changed
+13
-6
No files matched your search
@@ -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}")
|
||||
|
||||
Reference in new issue
Block a user