From e52ca7731fa7bc7bfb87b453bd46e202c8e7a571 Mon Sep 17 00:00:00 2001 From: TJ Borromeo Date: Mon, 20 Jul 2015 13:22:38 -0700 Subject: [PATCH] Update node_info.lua reducing overhead from extra sends probably well beneath buffer limits --- http/node_info.lua | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/http/node_info.lua b/http/node_info.lua index 5897a47..fdd8868 100644 --- a/http/node_info.lua +++ b/http/node_info.lua @@ -1,6 +1,6 @@ local function sendHeader(connection) connection:send("HTTP/1.0 200 OK\r\nContent-Type: text/html\r\nCache-Control: private, no-store\r\n\r\n") - + end local function sendAttr(connection, attr, val) @@ -10,9 +10,7 @@ end return function (connection, args) collectgarbage() sendHeader(connection) - connection:send('A Lua script sample') - connection:send('') - connection:send('

Node info

') + connection:send('A Lua script sample

Node info

') - connection:send('') + connection:send('') end