diff src/luan/modules/http/tools/luan_threads.luan @ 1150:0842b9b570f8

change http headers interface
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 04 Feb 2018 18:03:37 -0700
parents 4cddfc06a34f
children 1f9d34a6f308
line wrap: on
line diff
--- a/src/luan/modules/http/tools/luan_threads.luan	Sun Feb 04 17:23:20 2018 -0700
+++ b/src/luan/modules/http/tools/luan_threads.luan	Sun Feb 04 18:03:37 2018 -0700
@@ -25,7 +25,7 @@
 <html>
 	<body>
 		<h1>Luan Threads</h1>
-		<p><%=Http.request.header.host%> - <%=Time.format(Time.now())%></p>
+		<p><%=Http.request.headers["host"]%> - <%=Time.format(Time.now())%></p>
 		<%
 		local count = 0
 		for _, thread in Luan.ipairs(threads) do