diff website/src/examples/upload-and-email.luan @ 1152:21d157b153fe

change http parameters interface
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 04 Feb 2018 19:25:12 -0700
parents ca169567ce07
children 49cf706c326a
line wrap: on
line diff
--- a/website/src/examples/upload-and-email.luan	Sun Feb 04 18:50:25 2018 -0700
+++ b/website/src/examples/upload-and-email.luan	Sun Feb 04 19:25:12 2018 -0700
@@ -38,11 +38,11 @@
 
 return function()
 	Io.stdout = Http.response.text_writer()
-	local email = Http.request.parameter.email
+	local email = Http.request.parameters.email
 	if email == nil then
 		form()
 	else
-		local file = Http.request.parameter.file
+		local file = Http.request.parameters.file
 		send{
 			from = "smtp@luanhost.com";
 			to = email;