mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Prevents tests for replaceInData to take place if replaceInUrl is already true.
This commit is contained in:
parent
8e7aaa7fd0
commit
8ad22a2b15
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user