diff --git a/http/compat/socket.lua b/http/compat/socket.lua index a198ebb2..60d4c022 100644 --- a/http/compat/socket.lua +++ b/http/compat/socket.lua @@ -138,7 +138,7 @@ function M.request(reqt, b) if name == "host" then req.headers:upsert(":authority", field) else - req.headers:append(name:lower(), field) + req.headers:append(name:lower(), tostring(field)) end end end