Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
bd56456b
Commit
bd56456b
authored
Mar 07, 2012
by
jaubourg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #4624... 3 years later, people!
parent
d3fad51c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
ajax.js
src/ajax.js
+1
-1
jsonp.js
src/ajax/jsonp.js
+1
-2
No files found.
src/ajax.js
View file @
bd56456b
...
...
@@ -315,7 +315,7 @@ jQuery.extend({
isLocal
:
rlocalProtocol
.
test
(
ajaxLocParts
[
1
]
),
global
:
true
,
type
:
"GET"
,
contentType
:
"application/x-www-form-urlencoded"
,
contentType
:
"application/x-www-form-urlencoded
; charset=UTF-8
"
,
processData
:
true
,
async
:
true
,
/*
...
...
src/ajax/jsonp.js
View file @
bd56456b
...
...
@@ -14,8 +14,7 @@ jQuery.ajaxSetup({
// Detect, normalize options and install callbacks for jsonp requests
jQuery
.
ajaxPrefilter
(
"json jsonp"
,
function
(
s
,
originalSettings
,
jqXHR
)
{
var
inspectData
=
s
.
contentType
===
"application/x-www-form-urlencoded"
&&
(
typeof
s
.
data
===
"string"
);
var
inspectData
=
(
typeof
s
.
data
===
"string"
)
&&
/^application
\/
x
\-
www
\-
form
\-
urlencoded/
.
test
(
s
.
contentType
);
if
(
s
.
dataTypes
[
0
]
===
"jsonp"
||
s
.
jsonp
!==
false
&&
(
jsre
.
test
(
s
.
url
)
||
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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