Commit bc79629def10030aab6f7fb5dfed80285af13aa2

Thomas de Grivel 2024-09-10T21:42:06

fix httpd

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/lib/kc3/0.1/httpd.kc3 b/lib/kc3/0.1/httpd.kc3
index 23cb123..3f88688 100644
--- a/lib/kc3/0.1/httpd.kc3
+++ b/lib/kc3/0.1/httpd.kc3
@@ -218,7 +218,7 @@ defmodule HTTPd do
   }
 
   def static_controller = fn (request) {
-    render = if (! Str.starts_with(request.url, "/") ||
+    render = if (! Str.starts_with?(request.url, "/") ||
                  Str.has_str?(request.url, "/..")) do
                error_404_page
              else
@@ -234,7 +234,6 @@ defmodule HTTPd do
                end
              end
     render(request)
-    end
   }
 
   def_route("/", static_controller)