diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ajax/jsonp.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax/jsonp.js b/src/ajax/jsonp.js index 6b82b8262..3e3ea85a3 100644 --- a/src/ajax/jsonp.js +++ b/src/ajax/jsonp.js @@ -23,7 +23,7 @@ jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) { url = s.url, hasCallback = s.jsonp !== false, replaceInUrl = hasCallback && rjsonp.test( url ), - replaceInData = hasCallback && typeof data === "string" && + replaceInData = hasCallback && !replaceInUrl && typeof data === "string" && !( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") && rjsonp.test( data ); |