Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
71c2c372
Commit
71c2c372
authored
10 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
Fix
#14411
by setting JSON Content-Type for Gist API request
parent
31f7cb15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/assets/js/src/customizer.js
+1
-0
docs/assets/js/src/customizer.js
with
1 addition
and
0 deletions
+1
-0
docs/assets/js/src/customizer.js
+
1
-
0
View file @
71c2c372
...
@@ -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
)
})
})
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment