From 4cdb5301dd852f38877665538a9d51e608ef6459 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 7 Feb 2013 22:28:10 +0000 Subject: [PATCH] 300 and 303 are also HTTP redirects. --- nselib/http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/http.lua b/nselib/http.lua index 927098b0f..bed57bb4a 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -1400,7 +1400,7 @@ end -- @return url table as returned by url.parse or nil if there's no -- redirect taking place local function parse_redirect(host, port, path, response) - if ( not(tostring(response.status):match("^30[127]$")) or + if ( not(tostring(response.status):match("^30[01237]$")) or not(response.header) or not(response.header.location) ) then return nil