changed default content type to text/plain
This commit is contained in:
parent
038abb7c3b
commit
ec3aac6aa9
|
@ -64,7 +64,7 @@ haste_document.prototype.save = function(data, callback) {
|
||||||
type: 'post',
|
type: 'post',
|
||||||
data: data,
|
data: data,
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
contentType: 'application/json; charset=utf-8',
|
contentType: 'text/plain; charset=utf-8',
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
_this.locked = true;
|
_this.locked = true;
|
||||||
_this.key = res.key;
|
_this.key = res.key;
|
||||||
|
|
Loading…
Reference in New Issue