adding request header to conditionaly send zip file

This commit is contained in:
sanjayk03-dev
2024-06-07 20:31:40 +05:30
parent 1ec6a905da
commit 837d04ebd5
3 changed files with 11 additions and 10 deletions

View File

@@ -69,6 +69,9 @@ module.exports = {
await fetch("/api/config/restore", {
method: "PUT",
body: formData,
headers:{
'Type':'zip'
}
});
console.log('done');
// SvelteComponents.showDialog("Message", {