Skip to content
Permalink
Browse files

Fix issue where an Ajax request in IE sometimes returns 1223 instead …

…of 204 as the status code. [prototypejs#129 state:resolved] (adevadeh, gordyt, Andrew Dupont)
  • Loading branch information...
savetheclocktower committed Oct 17, 2010
1 parent 05e0ebc commit 8b2ed9719ad2ddd34ec541d8bd4229ab70f88e85
Showing with 4 additions and 0 deletions.
  1. +2 −0 CHANGELOG
  2. +2 −0 src/ajax/request.js
@@ -1,3 +1,5 @@
* Fix issue where an Ajax request in IE sometimes returns 1223 instead of 204 as the status code. [#129 state:resolved] (adevadeh, gordyt, Andrew Dupont)

* Add Object.isDate. [#443 state:resolved] (Nesterenko Dmitry, kangax, Samuel Lebeau, Andrew Dupont)

* Handle cases where `document` or `document.documentElement` is passed into Element#getOffsetParent. Fixes IE errors with many layout/positioning methods. [#90 state:resolved] (Padraig Kennedy, Andrew Dupont)
@@ -278,6 +278,8 @@ Ajax.Request = Class.create(Ajax.Base, {

getStatus: function() {
try {
// IE sometimes returns 1223 for a 204 response.
if (this.transport.status === 1223) return 204;
return this.transport.status || 0;
} catch (e) { return 0 }
},

0 comments on commit 8b2ed97

Please sign in to comment.
You can’t perform that action at this time.