mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 09:49:05 +00:00
Remove duplicate of previously defined skip_space()
This commit is contained in:
@@ -2081,19 +2081,9 @@ function pipeline_go(host, port, all_requests)
|
|||||||
return responses
|
return responses
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Parsing of specific headers. skip_space and the read_* functions return the
|
-- Parsing of specific headers. The read_* functions return the
|
||||||
-- byte index following whatever they have just read, or nil on error.
|
-- byte index following whatever they have just read, or nil on error.
|
||||||
|
|
||||||
-- Skip whitespace (that has already been folded from LWS). See RFC 2616,
|
|
||||||
-- section 2.2, definition of LWS.
|
|
||||||
local function skip_space(s, pos)
|
|
||||||
local _
|
|
||||||
|
|
||||||
_, pos = string.find(s, "^[ \t]*", pos)
|
|
||||||
|
|
||||||
return pos + 1
|
|
||||||
end
|
|
||||||
|
|
||||||
-- See RFC 2616, section 2.2.
|
-- See RFC 2616, section 2.2.
|
||||||
local function read_token(s, pos)
|
local function read_token(s, pos)
|
||||||
local _, token
|
local _, token
|
||||||
|
|||||||
Reference in New Issue
Block a user