mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11:29 +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
|
-- Check if the user didn't want HEAD to be used
|
||||||
if(nmap.registry.args.useget == nil) then
|
if(nmap.registry.args.useget == nil) then
|
||||||
-- Try using HEAD first
|
-- Try using HEAD first
|
||||||
status, result = http.can_use_head(host, port, path)
|
status, result = http.can_use_head(host, port, nil, path)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- If head failed, try using GET
|
-- If head failed, try using GET
|
||||||
|
|||||||
Reference in New Issue
Block a user