From eaf171e7bd85a7da623b9ddb4f24f1a61e23ead6 Mon Sep 17 00:00:00 2001 From: jah Date: Sun, 3 Nov 2013 22:56:04 +0000 Subject: [PATCH] Add missing argument 'HEAD' to the example pipeline_add call in the library documentation. Change to uppercase method names in the documentation for pipeline_add. --- nselib/http.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nselib/http.lua b/nselib/http.lua index 16c65527e..1c42a9297 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -27,7 +27,7 @@ -- -- yet. The second parameter represents the 'options' table, which we don't need. -- all = http.pipeline_add('/book', nil, all) -- all = http.pipeline_add('/test', nil, all) --- all = http.pipeline_add('/monkeys', nil, all) +-- all = http.pipeline_add('/monkeys', nil, all, 'HEAD') -- -- -- Perform all three requests as parallel as Nmap is able to -- local results = http.pipeline('nmap.org', 80, all) @@ -1619,7 +1619,7 @@ end -- @param path The path to retrieve. -- @param options [optional] A table that lets the caller control socket timeouts, HTTP headers, and other parameters. For full documentation, see the module documentation (above). -- @param all_requests [optional] The current pipeline queue (retunred from a previous add_pipeline call), or nil if it's the first call. --- @param method [optional] The HTTP method ('get', 'head', 'post', etc). Default: 'get'. +-- @param method [optional] The HTTP method ('GET', 'HEAD', 'POST', etc). Default: 'GET'. -- @return Table with the pipeline get requests (plus this new one) -- @see http.pipeline_go function pipeline_add(path, options, all_requests, method)