1
0
Fork 0
mirror of https://github.com/seejohnrun/haste-server.git synced 2024-11-01 03:21:21 +00:00

Explicitly set encoding

Closes #24
This commit is contained in:
John Crepezzi 2012-02-07 17:52:31 -05:00
parent ca9d4c18f7
commit 87e28548b9
2 changed files with 2 additions and 1 deletions

View file

@ -62,6 +62,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',
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