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

Fix contentType header in save request
master
John Crepezzi 5 years ago committed by GitHub
commit cc8a99752f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      static/application.js
  2. 2
      static/application.min.js

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

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save