diff --git a/index.js b/index.js index 8a0a1a6..5bf8232 100644 --- a/index.js +++ b/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; msg = "Found"; }