Mercurial Hosting > luan
comparison http/src/luan/modules/http/Shell_mod.luan @ 609:24b05963ba62
shell "clear" button now clears the session
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 09 Dec 2015 18:12:16 -0700 |
parents | 2f39468680be |
children | ca169567ce07 |
comparison
equal
deleted
inserted
replaced
608:d2e0855b3105 | 609:24b05963ba62 |
---|---|
13 local history = {} | 13 local history = {} |
14 M.env = {} | 14 M.env = {} |
15 | 15 |
16 function M.respond() | 16 function M.respond() |
17 if Http.request.parameter.clear ~= nil then | 17 if Http.request.parameter.clear ~= nil then |
18 history = {} | 18 Http.clear_session() |
19 Http.response.send_redirect(Http.request.path) -- reload page | |
20 return | |
19 else | 21 else |
20 local cmd = Http.request.parameter.cmd | 22 local cmd = Http.request.parameter.cmd |
21 if cmd ~= nil then | 23 if cmd ~= nil then |
22 Io.stdout = {} | 24 Io.stdout = {} |
23 function Io.stdout.write(...) | 25 function Io.stdout.write(...) |