diff src/luan/modules/http/tools/Shell_mod.luan @ 1152:21d157b153fe

change http parameters interface
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 04 Feb 2018 19:25:12 -0700
parents bae2d0c2576c
children 3ef883468fd0
line wrap: on
line diff
--- a/src/luan/modules/http/tools/Shell_mod.luan	Sun Feb 04 18:50:25 2018 -0700
+++ b/src/luan/modules/http/tools/Shell_mod.luan	Sun Feb 04 19:25:12 2018 -0700
@@ -14,12 +14,12 @@
 Shell_mod.env = {}
 
 function Shell_mod.respond()
-	if Http.request.parameter.clear ~= nil then
+	if Http.request.parameters.clear ~= nil then
 		Http.clear_session()
 		Http.response.send_redirect(Http.request.path)  -- reload page
 		return
 	else
-		local cmd = Http.request.parameter.cmd
+		local cmd = Http.request.parameters.cmd
 		if cmd ~= nil then
 			Io.stdout = {}
 			function Io.stdout.write(...)