Skip to content

Commit

Permalink
fix for #4183
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonaaron committed May 16, 2009
1 parent 29411a4 commit e10e625
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ajax.js
Expand Up @@ -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
Expand Down Expand Up @@ -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);
} }
Expand Down

0 comments on commit e10e625

Please sign in to comment.