changeset 10330 | cd1c73c2bdec |
parent 10328 | 3f4c25425589 |
child 10396 | 7a95f27ac9d6 |
--- a/net/http/server.lua Sat Oct 12 19:16:43 2019 +0200 +++ b/net/http/server.lua Sat Oct 12 19:30:29 2019 +0200 @@ -314,7 +314,7 @@ function _M.send_response(response, body) if response.finished then return; end body = body or response.body or ""; - response.headers.content_length = #body; + response.headers.content_length = ("%d"):format(#body); if response.is_head_request then return _M.send_head_response(response) end