mirror of
https://github.com/less/less.js.git
synced 2026-01-22 21:58:14 -05:00
Accept 2xx statuses even for file requests
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user