mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-03 04:07:36 +02:00
Fix #14411 by setting JSON Content-Type for Gist API request
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
Reference in New Issue
Block a user