From 71c2c372f6a14eae4bf7ae51958f770583bc2ccc Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Sun, 17 Aug 2014 15:41:53 -0700 Subject: [PATCH] Fix #14411 by setting JSON Content-Type for Gist API request --- docs/assets/js/src/customizer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/assets/js/src/customizer.js b/docs/assets/js/src/customizer.js index 7340f1668f..3af093c9ae 100644 --- a/docs/assets/js/src/customizer.js +++ b/docs/assets/js/src/customizer.js @@ -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) })