diff --git a/matrix/httpclient/chttp.lua b/matrix/httpclient/chttp.lua index 0f01ac9..31d2a6c 100644 --- a/matrix/httpclient/chttp.lua +++ b/matrix/httpclient/chttp.lua @@ -23,7 +23,7 @@ end local function headers_to_dict(h) local headers = {} - for name, value in pairs(h) do + for name, value in h:each() do if name:sub(1, 1) ~= ":" then headers[name] = value end