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:
commit
3fadee841a
@ -54,7 +54,7 @@ UploadSaver.prototype.save = function(text,method,callback) {
|
|||||||
// Do the HTTP post
|
// Do the HTTP post
|
||||||
var http = new XMLHttpRequest();
|
var http = new XMLHttpRequest();
|
||||||
http.open("POST",url,true,username,password);
|
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() {
|
http.onreadystatechange = function() {
|
||||||
if(http.readyState == 4 && http.status == 200) {
|
if(http.readyState == 4 && http.status == 200) {
|
||||||
if(http.responseText.substr(0,4) === "0 - ") {
|
if(http.responseText.substr(0,4) === "0 - ") {
|
||||||
|
@ -276,3 +276,5 @@ Richard Rath @rcrath 2016/02/12
|
|||||||
Eric Drechsel @edrex 2016/02/15
|
Eric Drechsel @edrex 2016/02/15
|
||||||
|
|
||||||
@FND 2016/02/27
|
@FND 2016/02/27
|
||||||
|
|
||||||
|
Cengizhan Kurt, @webninjasi, 2016/03/03
|
||||||
|
Loading…
Reference in New Issue
Block a user