diff --git a/http/args.lua b/http/args.lua index e359f90..51e3463 100644 --- a/http/args.lua +++ b/http/args.lua @@ -1,5 +1,5 @@ return function (connection, args) - connection:send("HTTP/1.0 200 OK\r\nContent-Type: text/html\r\Cache-Control: private, no-store\r\n\r\n") + connection:send("HTTP/1.0 200 OK\r\nContent-Type: text/html\r\nCache-Control: private, no-store\r\n\r\n") connection:send('Arguments') connection:send('') connection:send('

Arguments

') diff --git a/http/file_list.lua b/http/file_list.lua index 8f334e3..55c1389 100644 --- a/http/file_list.lua +++ b/http/file_list.lua @@ -1,5 +1,5 @@ return function (connection, args) - connection:send("HTTP/1.0 200 OK\r\nContent-Type: text/html\r\Cache-Control: private, no-store\r\n\r\n") + connection:send("HTTP/1.0 200 OK\r\nContent-Type: text/html\r\nCache-Control: private, no-store\r\n\r\n") connection:send('Server File Listing') connection:send('') connection:send('

Server File Listing

') diff --git a/http/garage_door_opener.lua b/http/garage_door_opener.lua index baca7d3..65b34e4 100644 --- a/http/garage_door_opener.lua +++ b/http/garage_door_opener.lua @@ -16,7 +16,7 @@ local function pushTheButton(connection, pin) gpio.mode(pin, gpio.INPUT) -- Send back JSON response. - connection:send("HTTP/1.0 200 OK\r\nContent-Type: application/json\r\Cache-Control: private, no-store\r\n\r\n") + connection:send("HTTP/1.0 200 OK\r\nContent-Type: application/json\r\nCache-Control: private, no-store\r\n\r\n") connection:send('{"error":0, "message":"OK"}') end @@ -26,7 +26,7 @@ return function (connection, args) if args.door == "1" then pushTheButton(connection, 3) -- GPIO0 elseif args.door == "2" then pushTheButton(connection, 4) -- GPIO2 else - connection:send("HTTP/1.0 400 OK\r\nContent-Type: application/json\r\Cache-Control: private, no-store\r\n\r\n") + connection:send("HTTP/1.0 400 OK\r\nContent-Type: application/json\r\nCache-Control: private, no-store\r\n\r\n") connection:send('{"error":-1, "message":"Bad door"}') end end diff --git a/http/node_info.lua b/http/node_info.lua index 5d19055..0cd02d1 100644 --- a/http/node_info.lua +++ b/http/node_info.lua @@ -1,5 +1,5 @@ local function sendHeader(connection) - connection:send("HTTP/1.0 200 OK\r\nContent-Type: text/html\r\Cache-Control: private, no-store\r\n\r\n") + connection:send("HTTP/1.0 200 OK\r\nContent-Type: text/html\rCache-Control: private, no-store\r\n\r\n") end local function sendAttr(connection, attr, val)