mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-22 14:00:03 +00:00
Fix invalid header in upload plugin
This commit is contained in:
parent
51db3e9e75
commit
47d518d6d4
@ -54,7 +54,7 @@ UploadSaver.prototype.save = function(text,method,callback) {
|
||||
// Do the HTTP post
|
||||
var http = new XMLHttpRequest();
|
||||
http.open("POST",url,true,username,password);
|
||||
http.setRequestHeader("Content-Type","multipart/form-data; ;charset=UTF-8; boundary=" + boundary);
|
||||
http.setRequestHeader("Content-Type","multipart/form-data; charset=UTF-8; boundary=" + boundary);
|
||||
http.onreadystatechange = function() {
|
||||
if(http.readyState == 4 && http.status == 200) {
|
||||
if(http.responseText.substr(0,4) === "0 - ") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user