Mercurial Hosting > luan
diff src/luan/modules/http/tools/run.luan @ 1152:21d157b153fe
change http parameters interface
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 04 Feb 2018 19:25:12 -0700 |
parents | 0842b9b570f8 |
children | 668f29bc52ea |
line wrap: on
line diff
--- a/src/luan/modules/http/tools/run.luan Sun Feb 04 18:50:25 2018 -0700 +++ b/src/luan/modules/http/tools/run.luan Sun Feb 04 19:25:12 2018 -0700 @@ -74,12 +74,12 @@ <% end return function() - local content_type = Http.request.parameter.content_type + local content_type = Http.request.parameters.content_type if content_type ~= nil then Http.response.headers["content-type"] = content_type end Io.stdout = Http.response.text_writer() - local code = Http.request.parameter.code + local code = Http.request.parameters.code if code == nil then form() return