diff src/luan/modules/http/tools/Dump_mod.luan @ 1160:4beabb087be6

add http/impl
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 05 Feb 2018 22:33:59 -0700
parents 0842b9b570f8
children 668f29bc52ea
line wrap: on
line diff
--- a/src/luan/modules/http/tools/Dump_mod.luan	Mon Feb 05 12:37:59 2018 -0700
+++ b/src/luan/modules/http/tools/Dump_mod.luan	Mon Feb 05 22:33:59 2018 -0700
@@ -13,11 +13,7 @@
 	Io.stdout = Http.response.text_writer()
 
 	local method = Http.request.method
-	local path = Http.request.path
-	local query = Http.request.query_string()
-	if method ~= "POST" and query ~= nil then
-		path = path.."?"..query
-	end
+	local path = Http.request.full_path()
 %>
 <%=method%> <%=path%> <%=Http.request.protocol%> 
 <%
@@ -25,9 +21,9 @@
 %>
 
 <%
-	if method == "POST" and query ~= nil then
+	if method == "POST" then
 %>
-<%=query%>
+<%=Io.repr(Http.request.parameters)%>
 <%
 	end
 end