mirror of
https://github.com/seejohnrun/haste-server.git
synced 2024-11-01 03:21:21 +00:00
Merge pull request #271 from mklkj/fix-content-type
Fix contentType header in save request
This commit is contained in:
commit
cc8a99752f
2 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ haste_document.prototype.save = function(data, callback) {
|
|||
type: 'post',
|
||||
data: data,
|
||||
dataType: 'json',
|
||||
contentType: 'application/json; charset=utf-8',
|
||||
contentType: 'text/plain; charset=utf-8',
|
||||
success: function(res) {
|
||||
_this.locked = true;
|
||||
_this.key = res.key;
|
||||
|
|
2
static/application.min.js
vendored
2
static/application.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue