OwnCloud: sending right Content-Type, fixes #36
This commit is contained in:
parent
dfcc5ba27a
commit
d6a2ca9fd6
1 changed files with 1 additions and 0 deletions
|
@ -59,6 +59,7 @@ OwnCloud.prototype.doOperation = function(method, operation, new_options, callba
|
|||
}
|
||||
}
|
||||
xhr.open(method, url, true);
|
||||
xhr.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
|
||||
xhr.withCredentials = true;
|
||||
xhr.setRequestHeader('Authorization', 'Basic ' + this.session_id);
|
||||
var body = JSON.stringify(options);
|
||||
|
|
Reference in a new issue