Mercurial Hosting > luan
changeset 1352:1604d7f36f3a
minor for nabble
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 10 Mar 2019 18:25:51 -0600 |
parents | 21b153b4bcc4 |
children | 8d95711f6615 |
files | src/luan/modules/http/tools/Shell.luan |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
diff -r 21b153b4bcc4 -r 1604d7f36f3a src/luan/modules/http/tools/Shell.luan --- a/src/luan/modules/http/tools/Shell.luan Mon Mar 04 12:12:45 2019 -0700 +++ b/src/luan/modules/http/tools/Shell.luan Sun Mar 10 18:25:51 2019 -0600 @@ -60,10 +60,10 @@ end function Shell.respond() - Io.stdout = Http.response.text_writer() local cmd = Http.request.parameters.cmd if cmd ~= nil then Http.response.headers["content-type"] = "application/javascript" + Io.stdout = Http.response.text_writer() local session_id = Http.request.parameters.session or error() local session = get_session(session_id) local rtn = pack( session.run(cmd) ) @@ -87,6 +87,7 @@ <% return end + Io.stdout = Http.response.text_writer() %> <!doctype html> <html>