mirror of
https://github.com/nmap/nmap.git
synced 2026-11-20 08:40:36 +08:00
Add missing 308 redirect
This commit is contained in:
+1
-1
@@ -1706,7 +1706,7 @@ end
|
||||
-- @return url table as returned by <code>url.parse</code> 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
|
||||
|
||||
Reference in New Issue
Block a user