Pass a clone of Response to API callback

This commit is contained in:
D. Berge
2025-08-06 10:42:34 +02:00
parent f2df16fe55
commit 8ef56f9946

View File

@@ -76,7 +76,7 @@ async function api ({state, getters, commit, dispatch}, [resource, init = {}, cb
} }
if (typeof cb === 'function') { if (typeof cb === 'function') {
await cb(null, res); await cb(null, res.clone());
} }
if (res.ok) { if (res.ok) {