- This page loads "large" images of fancy cars. It is meant to serve as a stress test for nodemcu-httpserver.
- It works with three embedded images of cars, but the server crashes with four. Edit this file and try it yourself.
- Whoever manages to modify nodemcu-httpserver to load all four images without crashing wins a prize!
-
+ This page loads "large" images of fancy cars. It is meant to serve as a stress test for nodemcu-httpserver.
+ It works with three embedded images of cars, but the server crashes with four. Edit this file and try it yourself.
+ Whoever manages to modify nodemcu-httpserver to load all four images without crashing wins a prize!
+
+ Ferrari
+ Lamborghini
+ Maserati
+ Porsche
+
-
-
diff --git a/http/cars.lua b/http/cars.lua
index 7dc61db..1c6ff0c 100644
--- a/http/cars.lua
+++ b/http/cars.lua
@@ -18,7 +18,7 @@ return function (connection, req, args)
dofile("httpserver-header.lc")(connection, 200, 'html')
connection:send([===[
-
+
diff --git a/http/counter.html b/http/counter.html
index 08f9e9d..ff4763f 100644
--- a/http/counter.html
+++ b/http/counter.html
@@ -1,24 +1,22 @@
-
-
-
-
-
- This page reloads itself as fast as it can to test the server.
- It is meant as a stress test to see when and if the server fails.
-
-
-
+
+
+ Counter
+
+
+
+ This page reloads itself as fast as it can to test the server.
+ It is meant as a stress test to see when and if the server fails.
+
\n")
for name, size in pairs(file.list()) do
local isHttpFile = string.match(name, "(http/)") ~= nil
if isHttpFile then
@@ -24,6 +24,6 @@ return function (connection, req, args)
connection:send('