- // Status 0 encompasses several cases
- } else if ( !status ) {
- // Cross-domain
- if ( s.crossDomain ) {
- if ( !s.statusText ) {
- // FF, Webkit (other?): There is no status text for errors
- // 302 is the most generic cross-domain status code
- // for errors, could be anything really (even a real 0)
- status = 302;
- }
- // All same-domain: for local files, 0 is a success
- } else if( protocolIsLocal ) {
- status = 200;
- // Opera: this notifies success for all requests
- // (verified in 11.01). Patch welcome.
- }
- // Opera - #6060: sets status as 0 for 304
- // Patch welcome.