Commit 0ba1da91bd1ac7e29d6bc3ba3200bae32bc28677

Thomas de Grivel 2024-10-14T20:23:00

wip test_httpd

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/httpd/fx/app/controllers/fx_controller.kc3 b/httpd/fx/app/controllers/fx_controller.kc3
index cdf6f04..431802e 100644
--- a/httpd/fx/app/controllers/fx_controller.kc3
+++ b/httpd/fx/app/controllers/fx_controller.kc3
@@ -83,11 +83,11 @@ defmodule FXController do
   def fx_route = fn (request) {
     if (request.method != GET &&
         request.method != HEAD) do
-      HTTPd.error_405_page(req)
+      HTTPd.error_405_page(request)
     else
       if (request.url == "/fx" ||
           Str.starts_with?(request.url, "/fx/")) do
-        path = "." + req.url
+        path = "." + request.url
         response = show_file(path, request.url)
         if (response) do
           response