From 976668b564c1575409eb71c618944c403d09fc06 Mon Sep 17 00:00:00 2001 From: nnposter Date: Sun, 21 Apr 2019 18:42:50 +0000 Subject: [PATCH] Header Connection is a comma-separated list --- nselib/http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/http.lua b/nselib/http.lua index e76a144ee..43f91dd88 100644 --- a/nselib/http.lua +++ b/nselib/http.lua @@ -871,7 +871,7 @@ local function getPipelineMax(response) if response then local hdr = response.header or {} - local opts = stringaux.strsplit("%s+", (hdr.connection or ""):lower()) + local opts = stringaux.strsplit("[,%s]+", (hdr.connection or ""):lower()) if tableaux.contains(opts, "close") then return 1 end if response.version >= "1.1" or tableaux.contains(opts, "keep-alive") then return tonumber((hdr["keep-alive"] or ""):match("max=(%d+)")) or 40