From 9827b75f8292e53ee83a908c2c1c8e8a028af668 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 25 Jan 2013 17:43:29 +0000 Subject: [PATCH] Whitespace in http-headers. --- scripts/http-headers.nse | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/scripts/http-headers.nse b/scripts/http-headers.nse index d2b435fbd..58ca6c58a 100644 --- a/scripts/http-headers.nse +++ b/scripts/http-headers.nse @@ -21,9 +21,9 @@ Performs a HEAD request for the root folder ("/") of a web server and displays t -- | Content-Type: text/html -- | -- |_ (Request type: HEAD) --- ---@args path The path to request, such as /index.php. Default /. ---@args useget Set to force GET requests instead of HEAD. +-- +--@args path The path to request, such as /index.php. Default /. +--@args useget Set to force GET requests instead of HEAD. author = "Ron Bowes" @@ -31,12 +31,11 @@ license = "Same as Nmap--See http://nmap.org/book/man-legal.html" categories = {"discovery", "safe"} - portrule = shortport.http action = function(host, port) local path = stdnse.get_script_args(SCRIPT_NAME..".path") or "/" - local useget = stdnse.get_script_args(SCRIPT_NAME..".useget") + local useget = stdnse.get_script_args(SCRIPT_NAME..".useget") local request_type = "HEAD" local status = false local result @@ -71,7 +70,6 @@ action = function(host, port) end table.insert(result.rawheader, "(Request type: " .. request_type .. ")") - + return stdnse.format_output(true, result.rawheader) end -