Commit 72690a0cc7d8bf7abcce3420f020b57e19bf06fa

Thomas de Grivel 2024-09-13T21:11:44

fix test/http/04_server_request

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 7e3e6d4..43c0fab 100644
--- a/http/http_request.c
+++ b/http/http_request.c
@@ -63,8 +63,8 @@ s_tag * http_request_buf_parse_method (s_buf *buf, s_tag *dest)
     goto restore;
   }
   if (! b) {
-    tmp.type = TAG_STR;
-    tmp.data.str = tmp.data.sym->str;
+    tag_init_str(&tmp, NULL, tmp.data.sym->str.size,
+                 tmp.data.sym->str.ptr.pchar);
   }
   buf_save_clean(buf, &save);
   *dest = tmp;