This commit is contained in:
Jörn Zaefferer 2007-01-31 21:14:33 +00:00
parent 397be502f9
commit 1e07c1a311

View File

@ -599,9 +599,12 @@ jQuery.extend({
if (s.processData && typeof s.data != "string")
s.data = jQuery.param(s.data);
// 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)
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