Fix non-3xx code detection

This commit is contained in:
Dorian Niemiec 2024-02-11 15:04:02 +01:00
parent 0901e44f79
commit 6bc064b474

View file

@ -143,7 +143,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;
msg = "Found";
}