Fix non-3xx code detection

This commit is contained in:
Dorian Niemiec 2024-02-11 15:03:27 +01:00
parent fb9bb1e798
commit 73a6353a98

View file

@ -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";
} }