Commit 71c2c372 authored by Chris Rebert's avatar Chris Rebert
Browse files

Fix #14411 by setting JSON Content-Type for Gist API request

parent 31f7cb15
Showing with 1 addition and 0 deletions
+1 -0
...@@ -73,6 +73,7 @@ window.onload = function () { // wait for load in a dumb way because B-0 ...@@ -73,6 +73,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
$.ajax({ $.ajax({
url: 'https://api.github.com/gists', url: 'https://api.github.com/gists',
type: 'POST', type: 'POST',
contentType: 'application/json; charset=UTF-8',
dataType: 'json', dataType: 'json',
data: JSON.stringify(data) data: JSON.stringify(data)
}) })
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment