mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 06:01:28 +00:00
Fixed a bug where http-headers.nse wasn't honouring the 'path' script-arg.
This commit is contained in:
@@ -46,7 +46,7 @@ action = function(host, port)
|
||||
-- Check if the user didn't want HEAD to be used
|
||||
if(nmap.registry.args.useget == nil) then
|
||||
-- Try using HEAD first
|
||||
status, result = http.can_use_head(host, port, path)
|
||||
status, result = http.can_use_head(host, port, nil, path)
|
||||
end
|
||||
|
||||
-- If head failed, try using GET
|
||||
|
||||
Reference in New Issue
Block a user