From 46e81c8baf610e532940c1335e827601227f85f0 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 8 Feb 2010 11:20:19 +0000 Subject: net.httpserver: Trailing whitespace --- net/httpserver.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net/httpserver.lua') diff --git a/net/httpserver.lua b/net/httpserver.lua index addbfac0..6ebfcb76 100644 --- a/net/httpserver.lua +++ b/net/httpserver.lua @@ -207,15 +207,15 @@ end -- The default handler for requests default_handler = function (method, body, request) log("debug", method.." request for "..tostring(request.path) .. " on port "..request.handler:serverport()); - return { status = "404 Not Found", + return { status = "404 Not Found", headers = { ["Content-Type"] = "text/html" }, body = "Page Not FoundNot here :(" }; end function new_request(handler) - return { handler = handler, conn = handler.socket, - write = function (...) return handler:write(...); end, state = "request", + return { handler = handler, conn = handler.socket, + write = function (...) return handler:write(...); end, state = "request", server = http_servers[handler:serverport()], send = send_response, destroy = destroy_request, -- cgit v1.2.3