diff http/src/luan/modules/http/run.luan @ 497:55f9f74f1e55

Http.request is now pure luan
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 17 May 2015 19:25:47 -0600
parents 598123096772
children ee55be414a34
line wrap: on
line diff
--- a/http/src/luan/modules/http/run.luan	Sat May 16 20:19:05 2015 -0600
+++ b/http/src/luan/modules/http/run.luan	Sun May 17 19:25:47 2015 -0600
@@ -49,12 +49,12 @@
 
 function respond()
 	Io.stdout = Http.response.text_writer()
-	local code = Http.request.parameters.code
+	local code = Http.request.parameter.code
 	if code == nil then
 		form()
 		return
 	end
-	local content_type = Http.request.parameters.content_type
+	local content_type = Http.request.parameter.content_type
 	if content_type ~= nil then
 		Http.response.content_type = content_type
 	end