Bug Tracker

Changeset 3977

Show
Ignore:
Timestamp:
11/29/07 17:12:08 (1 year ago)
Author:
davidserduke
Message:

Fixed #1450 by returning 1223 as success. Couldn't normalize the status since jquery uses the actual xmlhttprequest object.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/src/ajax.js

    r3840 r3977  
    271271             
    272272        if ( s.global ) 
    273             jQuery.event.trigger("ajaxSend", [xml, s]); 
     273            jQuery.event.trigger("ajaxSend", [xml, s]); 
    274274 
    275275        // Wait for a response to come back 
     
    398398    httpSuccess: function( r ) { 
    399399        try { 
     400            // IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450 
    400401            return !r.status && location.protocol == "file:" || 
    401                 ( r.status >= 200 && r.status < 300 ) || r.status == 304 || 
     402                ( r.status >= 200 && r.status < 300 ) || r.status == 304 || r.status == 1223 || 
    402403                jQuery.browser.safari && r.status == undefined; 
    403404        } catch(e){}