Fix non-3xx code detection
This commit is contained in:
parent
fb9bb1e798
commit
73a6353a98
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -273,7 +273,7 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (code < 300 && code > 399 && hasLocation) {
|
if ((code < 300 || code > 399) && hasLocation) {
|
||||||
code = 302;
|
code = 302;
|
||||||
msg = "Found";
|
msg = "Found";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue