mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Revert "Lower-case scheme comparisons."
Handle it at the url.parse level.
This commit is contained in:
parent
4fb61350d8
commit
842f9e6804
1 changed files with 2 additions and 2 deletions
|
|
@ -1414,8 +1414,8 @@ local function parse_redirect(host, port, path, response)
|
|||
end
|
||||
-- do port fixup
|
||||
if ( not(u.port) ) then
|
||||
if ( string.lower(u.scheme) == "http" ) then u.port = 80
|
||||
elseif ( string.lower(u.scheme) == "https") then u.port = 443
|
||||
if ( u.scheme == "http" ) then u.port = 80
|
||||
elseif ( u.scheme == "https") then u.port = 443
|
||||
else u.port = port.number end
|
||||
end
|
||||
if ( not(u.path) ) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue