Skip to content

Commit 89850e9

Browse files
committed
Fixes issue #5803
1 parent bc282a8 commit 89850e9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ajax.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,12 @@ jQuery.extend({
207207
if ( s.data && s.processData && typeof s.data !== "string" ) {
208208
s.data = jQuery.param( s.data, s.traditional );
209209
}
210+
211+
// If the jsonpCallback has been set, we can assume that dataType is jsonp
212+
// Ticket #5803
213+
if ( s.jsonpCallback ) {
214+
s.dataType = "jsonp";
215+
}
210216

211217
// Handle JSONP Parameter Callbacks
212218
if ( s.dataType === "jsonp" ) {

0 commit comments

Comments
 (0)