We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc282a8 commit 89850e9Copy full SHA for 89850e9
src/ajax.js
@@ -207,6 +207,12 @@ jQuery.extend({
207
if ( s.data && s.processData && typeof s.data !== "string" ) {
208
s.data = jQuery.param( s.data, s.traditional );
209
}
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
+ }
216
217
// Handle JSONP Parameter Callbacks
218
if ( s.dataType === "jsonp" ) {
0 commit comments