diff --git a/SimpleServer/server.spl b/SimpleServer/server.spl index 43bcbb3..6e38458 100644 --- a/SimpleServer/server.spl +++ b/SimpleServer/server.spl @@ -1,6 +1,7 @@ "#httpserver/base.spl" import "#httpserver/static.spl" import + use net:http:Server construct Latest { @@ -52,7 +53,7 @@ func main { exitcode | with args ; } } -func handle-client { | with client ; +func handle-client { | with client ; client:read; "index.html" "/" client:serve-html-cached;