From 82dbea8a4abd379abf2978f4023ce1a9de5c8262 Mon Sep 17 00:00:00 2001 From: Adeh DeSandies Date: Tue, 3 Jun 2008 01:09:35 +0800 Subject: [PATCH] issue 129, accept 1223 as success status code --- src/ajax.js | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/ajax.js b/src/ajax.js index 0f79273..d5389e2 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -198,7 +198,9 @@ Ajax.Request = Class.create(Ajax.Base, { success: function() { var status = this.getStatus(); - return (!status && this._allowStatusZero) || (status >= 200 && status < 300); + // issue 129 http://prototype.lighthouseapp.com/projects/8886/tickets/129-ie-mangles-http-response-status-code-204-to-1223 + // accept 1223 as a successful status, IE interprets 204 as 1223 + return (!status && this._allowStatusZero) || (status >= 200 && status < 300) || (status == 1223); }, getStatus: function() { -- 1.5.3.8