mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
fix for #4183
This commit is contained in:
parent
29411a4405
commit
e10e625bf4
@ -233,9 +233,6 @@ jQuery.extend({
|
|||||||
// If data is available, append data to url for get requests
|
// If data is available, append data to url for get requests
|
||||||
if ( s.data && type == "GET" ) {
|
if ( s.data && type == "GET" ) {
|
||||||
s.url += (s.url.match(/\?/) ? "&" : "?") + s.data;
|
s.url += (s.url.match(/\?/) ? "&" : "?") + 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
|
||||||
@ -409,7 +406,7 @@ jQuery.extend({
|
|||||||
|
|
||||||
// Send the data
|
// Send the data
|
||||||
try {
|
try {
|
||||||
xhr.send(s.data);
|
xhr.send( type === "POST" ? s.data : null );
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
jQuery.handleError(s, xhr, null, e);
|
jQuery.handleError(s, xhr, null, e);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user