Skip to content

Commit

Permalink
Treat a 304 HTTP status as a successful response. [#331 state:resolve…
Browse files Browse the repository at this point in the history
…d] (Kenneth Kin Lum, Andrew Dupont)
  • Loading branch information
savetheclocktower committed Nov 2, 2010
1 parent 5dc12bd commit e65e921
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG
@@ -1,3 +1,5 @@
* Treat a 304 HTTP status as a successful response. [#331 state:resolved] (Kenneth Kin Lum, Andrew Dupont)

* Handle sparse arrays properly in `Array#_each` to match behavior with browsers' built-in `Array#forEach` (and ES5). [#790 state:resolved] (Andriy Tyurnikov, Yaffle, Andrew Dupont)

* Make `Event.extend` work with legacy IE events in IE 9. (Andrew Dupont)
Expand Down
2 changes: 1 addition & 1 deletion src/ajax/request.js
Expand Up @@ -270,7 +270,7 @@ Ajax.Request = Class.create(Ajax.Base, {
**/
success: function() {
var status = this.getStatus();
return !status || (status >= 200 && status < 300);
return !status || (status >= 200 && status < 300) || status == 304;
},

getStatus: function() {
Expand Down

0 comments on commit e65e921

Please sign in to comment.