Fix content type

This commit is contained in:
Mikołaj Pich 2018-12-22 15:11:37 +01:00
parent f3838ab4a8
commit 035cf0e91e
No known key found for this signature in database
GPG Key ID: F62B26E36D4C4BAA
2 changed files with 2 additions and 2 deletions

View File

@ -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;

File diff suppressed because one or more lines are too long