Commit 7c8ef9fedb68112d5968c78d365ec23935e19e68

Thomas de Grivel 2024-09-11T15:37:30

wip http_request_buf_parse_method

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/http/http_request.c b/http/http_request.c
index d8bdd19..5a461d9 100644
--- a/http/http_request.c
+++ b/http/http_request.c
@@ -35,7 +35,9 @@ const s_sym ** http_request_buf_parse_method (s_buf *buf,
   tag.data.sym = sym_find(&str);
   str_clean(&str);
   if (! tag.data.sym) {
-    err_puts("http_request_buf_parse_method: method Sym not found");
+    err_write_1("http_request_buf_parse_method: method not found: ");
+    err_inspect_str(&str);
+    err_write_1("\n");
     goto restore;
   }
   ident_init(&ident, sym_1("HTTP.Request"), sym_1("allowed_methods"));