Mercurial Hosting > luan
diff http/src/luan/modules/http/run.luan @ 498:ee55be414a34
Http.response is now mostly luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 18 May 2015 00:25:35 -0600 |
parents | 55f9f74f1e55 |
children | 92c3d22745b8 |
line wrap: on
line diff
--- a/http/src/luan/modules/http/run.luan Sun May 17 19:25:47 2015 -0600 +++ b/http/src/luan/modules/http/run.luan Mon May 18 00:25:35 2015 -0600 @@ -56,7 +56,7 @@ end local content_type = Http.request.parameter.content_type if content_type ~= nil then - Http.response.content_type = content_type + Http.response.header.content_type = content_type end local env = { request = Http.request; @@ -68,7 +68,7 @@ run() end; catch = function(e) - Http.response.content_type = "text/plain" + Http.response.header.content_type = "text/plain" print(e) print() print()