Commit f1d5b3d4946dfeb6a19a3cad233bc228099eaef9

Thomas de Grivel 2024-09-18T11:16:50

httpd

diff --git a/lib/kc3/0.1/httpd.kc3 b/lib/kc3/0.1/httpd.kc3
index 92ab2ad..eb82868 100644
--- a/lib/kc3/0.1/httpd.kc3
+++ b/lib/kc3/0.1/httpd.kc3
@@ -251,7 +251,7 @@ defmodule HTTPd do
         error_404_page(request)
       end
     }
-    fn (request) {
+    HTTPd.fn (request) {
       render = if (! Str.starts_with?(request.url, "/") ||
                    Str.has_str?(request.url, "/../") ||
                    Str.ends_with?(request.url, "/..")) do
diff --git a/libkc3/buf_inspect.c b/libkc3/buf_inspect.c
index cf56821..71cb294 100644
--- a/libkc3/buf_inspect.c
+++ b/libkc3/buf_inspect.c
@@ -2152,6 +2152,18 @@ sw buf_inspect_frame (s_buf *buf, const s_frame *frame)
       result += r;
     }
   }
+  f = frame->fn_frame;
+  while (f) {
+    if ((r = buf_inspect_binding(buf, f->bindings)) < 0)
+      goto clean;
+    result += r;
+    f = f->next;
+    if (f) {
+      if ((r = buf_write_1(buf, ",\n")) < 0)
+        goto clean;
+      result += r;
+    }
+  }
   if ((r = buf_write_1(buf, "]")) < 0)
     goto clean;
   result += r;