Mercurial Hosting > luan
changeset 2020:163f88f7ee00 default tip
for nabble
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 05 Oct 2025 20:43:42 -0600 |
parents | cbc5a66217d7 |
children | |
files | src/luan/modules/http/tools/Run.luan |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
diff -r cbc5a66217d7 -r 163f88f7ee00 src/luan/modules/http/tools/Run.luan --- a/src/luan/modules/http/tools/Run.luan Fri Oct 03 18:28:21 2025 -0600 +++ b/src/luan/modules/http/tools/Run.luan Sun Oct 05 20:43:42 2025 -0600 @@ -30,6 +30,7 @@ local function form() Http.response.headers["Content-Type"] = "text/html; charset=utf-8" + Io.stdout = Http.response.text_writer() %> <!doctype html> <html lang="en"> @@ -80,6 +81,7 @@ function Run.run(code,source_name) try Http.response.headers["Content-Type"] = "text/plain; charset=utf-8" + Io.stdout = Http.response.text_writer() local run = load(code,source_name) run() return true @@ -90,7 +92,6 @@ end function Run.respond() - Io.stdout = Http.response.text_writer() local code = Http.request.parameters.code if code == nil then form()