Skip to content

Commit

Permalink
Fix #14411 by setting JSON Content-Type for Gist API request
Browse files Browse the repository at this point in the history
  • Loading branch information
cvrebert committed Aug 17, 2014
1 parent 31f7cb1 commit 71c2c37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/assets/js/src/customizer.js
Expand Up @@ -73,6 +73,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
$.ajax({
url: 'https://api.github.com/gists',
type: 'POST',
contentType: 'application/json; charset=UTF-8',
dataType: 'json',
data: JSON.stringify(data)
})
Expand Down

0 comments on commit 71c2c37

Please sign in to comment.