From bddedfcd21773e086803836ae2a4141441669bbe Mon Sep 17 00:00:00 2001 From: "Hargobind S. Khalsa" Date: Tue, 6 Sep 2011 16:04:49 -0600 Subject: [PATCH] Accept 2xx statuses even for file requests --- lib/less/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/less/browser.js b/lib/less/browser.js index cba4c3b61..77e59ae1f 100644 --- a/lib/less/browser.js +++ b/lib/less/browser.js @@ -233,7 +233,7 @@ function xhr(url, type, callback, errback) { xhr.send(null); if (isFileProtocol) { - if (xhr.status === 0) { + if (xhr.status === 0 || (xhr.status >= 200 && xhr.status < 300)) { callback(xhr.responseText); } else { errback(xhr.status, url);