mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 20:51:30 +00:00
Skip over empty content encoding placeholders
This commit is contained in:
@@ -858,7 +858,10 @@ local decode_body = function (body, encodings, maxlen)
|
|||||||
local undecoded = tableaux.tcopy(encodings)
|
local undecoded = tableaux.tcopy(encodings)
|
||||||
while #undecoded > 0 do
|
while #undecoded > 0 do
|
||||||
local enc = undecoded[1]:lower()
|
local enc = undecoded[1]:lower()
|
||||||
if enc == "identity" then
|
if enc == "" then
|
||||||
|
-- do nothing (empty encoding placeholder)
|
||||||
|
table.remove(undecoded, 1)
|
||||||
|
elseif enc == "identity" then
|
||||||
-- do nothing
|
-- do nothing
|
||||||
table.insert(decoded, table.remove(undecoded, 1))
|
table.insert(decoded, table.remove(undecoded, 1))
|
||||||
elseif enc == "gzip" and have_zlib then
|
elseif enc == "gzip" and have_zlib then
|
||||||
|
|||||||
Reference in New Issue
Block a user