1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 12:07:19 +00:00

Merge pull request #2313 from webninjasi/patch-1

Fix invalid header in upload plugin
This commit is contained in:
Jeremy Ruston 2016-03-04 09:42:41 +00:00
commit 3fadee841a
2 changed files with 3 additions and 1 deletions

View File

@ -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 - ") {

View File

@ -276,3 +276,5 @@ Richard Rath @rcrath 2016/02/12
Eric Drechsel @edrex 2016/02/15
@FND 2016/02/27
Cengizhan Kurt, @webninjasi, 2016/03/03