]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix #14411 by setting JSON Content-Type for Gist API request
authorChris Rebert <code@rebertia.com>
Sun, 17 Aug 2014 22:41:53 +0000 (15:41 -0700)
committerChris Rebert <code@rebertia.com>
Sun, 17 Aug 2014 22:41:53 +0000 (15:41 -0700)
docs/assets/js/src/customizer.js

index 7340f1668fdc50ee5b41fab274de5a52c16a042d..3af093c9ae0b956703a8ded43849cfaf6b71fd62 100644 (file)
@@ -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)
     })