mirror of
https://github.com/nmap/nmap.git
synced 2026-08-31 06:56:38 +00:00
300 and 303 are also HTTP redirects.
This commit is contained in:
parent
ac5a479a73
commit
4cdb5301dd
1 changed files with 1 additions and 1 deletions
|
|
@ -1400,7 +1400,7 @@ end
|
|||
-- @return url table as returned by <code>url.parse</code> 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue