Merge pull request #271 from mklkj/fix-content-type

Fix contentType header in save request
Esse commit está contido em:
John Crepezzi
2020-10-06 01:18:34 -04:00
commit de GitHub
2 arquivos alterados com 2 adições e 2 exclusões
+1 -1
Ver Arquivo
@@ -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;
+1 -1
Ver Arquivo
Diff do arquivo suprimido porque uma ou mais linhas são muito longas