mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix for #884
This commit is contained in:
parent
397be502f9
commit
1e07c1a311
@ -599,9 +599,12 @@ jQuery.extend({
|
|||||||
if (s.processData && typeof s.data != "string")
|
if (s.processData && typeof s.data != "string")
|
||||||
s.data = jQuery.param(s.data);
|
s.data = jQuery.param(s.data);
|
||||||
// append data to url for get requests
|
// append data to url for get requests
|
||||||
if( s.type.toLowerCase() == "get" )
|
if( s.type.toLowerCase() == "get" ) {
|
||||||
// "?" + data or "&" + data (in case there are already params)
|
// "?" + data or "&" + data (in case there are already params)
|
||||||
s.url += ((s.url.indexOf("?") > -1) ? "&" : "?") + s.data;
|
s.url += ((s.url.indexOf("?") > -1) ? "&" : "?") + s.data;
|
||||||
|
// IE likes to send both get and post data, prevent this
|
||||||
|
s.data = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Watch for a new set of requests
|
// Watch for a new set of requests
|
||||||
|
Loading…
Reference in New Issue
Block a user