fix: update regex in headers.lua to capture all characters after the colon

This commit is contained in:
Théophile Diot 2024-11-25 13:58:38 +01:00
parent 7f7c6ebdc2
commit 687806f4d9
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -62,7 +62,7 @@ function headers:init()
if data[srv] == nil then
data[srv] = {}
end
local m = regex_match(value, "([\\w-]+): ([^,]+)")
local m = regex_match(value, "([\\w-]+): (.+)")
if m then
data[srv][m[1]] = m[2]
end