mirror of
https://github.com/nmap/nmap.git
synced 2026-08-28 12:31:12 +00:00
Remove duplicate of previously defined skip_space()
This commit is contained in:
parent
9289bbccee
commit
7a989ff957
1 changed files with 1 additions and 11 deletions
|
|
@ -2081,19 +2081,9 @@ function pipeline_go(host, port, all_requests)
|
|||
return responses
|
||||
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.
|
||||
|
||||
-- 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.
|
||||
local function read_token(s, pos)
|
||||
local _, token
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue