aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-02-08 11:20:19 +0000
committerMatthew Wild <mwild1@gmail.com>2010-02-08 11:20:19 +0000
commit46e81c8baf610e532940c1335e827601227f85f0 (patch)
tree35afefff143eb7378d0d69496bcb7e3b8ec1a68c
parent2baed82b54890013c76d2b3c2cd2e5f283eb5ef2 (diff)
downloadprosody-46e81c8baf610e532940c1335e827601227f85f0.tar.gz
prosody-46e81c8baf610e532940c1335e827601227f85f0.zip
net.httpserver: Trailing whitespace
-rw-r--r--net/httpserver.lua6
1 files changed, 3 insertions, 3 deletions
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 = "<html><head><title>Page Not Found</title></head><body>Not here :(</body></html>" };
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,