mirror of
https://github.com/nmap/nmap.git
synced 2026-06-27 19:53:10 +00:00
Replace the concatenation with a more uniform function call.
This commit is contained in:
parent
af81f31573
commit
d93a4a21fe
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ end
|
|||
-- @return True if login in was successful
|
||||
---
|
||||
local function try_http_post_login(host, port, path, target, failstr, params, follow_redirects)
|
||||
local req = http.post(host, port, path:gsub("[^/]+$","")..target, {no_cache=true}, nil, params)
|
||||
local req = http.post(host, port, url.absolute(path, target), {no_cache=true}, nil, params)
|
||||
|
||||
if not req.status then return false end
|
||||
local status = tonumber(req.status) or 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue