From 8b515f26b8beffd11daaaaac160309f5abe3d39f Mon Sep 17 00:00:00 2001 From: nnposter Date: Thu, 5 Nov 2026 00:21:27 +0000 Subject: [PATCH] Add missing 308 redirect --- nselib/http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/http.lua b/nselib/http.lua index 7b2165f5e..8a27c84e2 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -1706,7 +1706,7 @@ end -- @return url table as returned by url.parse or nil if there's no -- redirect taking place function parse_redirect(host, port, path, response) - if ( not(tostring(response.status):match("^30[01237]$")) or + if ( not(tostring(response.status):find("^30[012378]$")) or not(response.header) or not(response.header.location) ) then return nil