only send key header when key is not empty
This commit is contained in:
parent
e7a13b541b
commit
290ecf2da1
1 changed files with 3 additions and 1 deletions
|
|
@ -194,7 +194,9 @@
|
|||
API.show.progress(evt.loaded/evt.total, "sending");
|
||||
});
|
||||
ajax.open("POST", host+"/api/files/local");
|
||||
ajax.setRequestHeader("X-Api-Key", apik);
|
||||
if (apik) {
|
||||
ajax.setRequestHeader("X-Api-Key", apik);
|
||||
}
|
||||
ajax.send(form);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue