author | Matthew Wild <mwild1@gmail.com> |
Sat, 28 Apr 2012 19:36:09 +0100 | |
changeset 4787 | 1d753fecf95b |
parent 4786 | ad6d4ab40b20 |
child 4788 | e14f5a156571 |
--- a/net/http/server.lua Sat Apr 28 18:45:04 2012 +0100 +++ b/net/http/server.lua Sat Apr 28 19:36:09 2012 +0100 @@ -228,7 +228,7 @@ local status_line = "HTTP/"..response.request.httpversion.." "..(response.status or codes[response.status_code]); local headers = response.headers; - body = body or ""; + body = body or response.body or ""; headers.content_length = #body; local output = { status_line };