From 7a989ff957c80356c04972f35b4679cfcaf1e9c4 Mon Sep 17 00:00:00 2001 From: nnposter Date: Sun, 26 Oct 2025 01:37:00 +0000 Subject: [PATCH] Remove duplicate of previously defined skip_space() --- nselib/http.lua | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/nselib/http.lua b/nselib/http.lua index c0c152016..2defdec91 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -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