1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-21 23:19:03 +00:00

Made some big style changes to clean up HTTP library. Primarily focused on improving the interface, NSEDoc, and pipline support

This commit is contained in:
ron
2010-11-02 02:07:01 +00:00
parent d7ab029c76
commit fef25e6a42
4 changed files with 357 additions and 265 deletions

View File

@@ -101,11 +101,10 @@ Creates a pipeline table and returns the result
]]--
local function inject(host, port, injectable)
local all = {}
local pOpts = {}
for k, v in pairs(injectable) do
all = http.pGet(host, port, v, nil, nil, all)
all = http.pipeline_add(v, nil, all, 'GET')
end
return http.pipeline(host, port, all, pOpts)
return http.pipeline_go(host, port, all)
end
--[[