@@ 86,7 86,6 @@ http.createServer(function (req, res)
routed = true
if (route.status) then
- vardump(route.status)
res:writeHead(route.status, {})
end
@@ 148,6 147,7 @@ http.createServer(function (req, res)
-- '" .. route.type .. "'
res:setHeader("Content-Length", #err)
res:finish(err)
+
end
break
@@ 156,8 156,9 @@ http.createServer(function (req, res)
if (routed == false) then
res:writeHead(404, {})
- res:setHeader("Content-Length", 0)
- res:finish()
+ err = "404, The request does not match any routes"
+ res:setHeader("Content-Length", #err)
+ res:finish(err)
end
end):listen(port, host)