hugo.soucy.cc

The personnal website source code of Hugo Soucy. Creates from an homebrewed static website generator (Ferron).
Log | Files | Refs

commit bf4fce6f2268e88ee4db8205012e65d99e44fcea
parent 6a1aee30c3518a360d6aa4ded449f57c24946017
Author: Hugo Soucy <hsoucy@kronostechnologies.com>
Date:   Tue,  5 Feb 2019 08:45:15 -0500

Add a more useful outputs in the httpd plugin

Diffstat:
Mplugins/httpd/init.lua | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/plugins/httpd/init.lua b/plugins/httpd/init.lua @@ -1,5 +1,5 @@ -- httpd.lua -package.path = package.path .. ";../../?.lua" +--package.path = package.path .. ";../../?.lua" local httpd = {} local httpdmeta = { __call = function(self, key, vars) @@ -18,7 +18,8 @@ function httpd.init(sitedata) }) return server:start(function(request, response) - print("!!!!") + print("= Request: " .. inspect(request.firstLine)) + print("= Response: " .. inspect(response.headFirstLine)) end) end