Fix problem with duplicate headers
@@ -40,10 +40,14 @@ function session_rust_envoy.inspect(handle)
for k, v in pairs(handle:headers()) do
if utils.startswith(k, ":") then
meta[k:sub(2):lower()] = v
+ else
+ if headers[k] then
+ headers[k] = headers[k] .. " " .. v
else
headers[k] = v
end
end
+ end
local hbody = handle:body()
local body_content = nil
