Commit a3813141897cc717d62de74520cbf61f257e28f8

Thomas de Grivel 2024-12-09T10:58:11

fix http

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/http/http_response.c b/http/http_response.c
index 78190b6..34fd905 100644
--- a/http/http_response.c
+++ b/http/http_response.c
@@ -218,8 +218,8 @@ sw http_response_buf_write (const s_http_response *response,
     if ((r = buf_write_1(buf, ": ")) < 0)
       return r;
     result += r;
-    if ((r = buf_inspect_uw_decimal(buf,
-                                    &response->body.data.str.size)) < 0)
+    r = buf_inspect_u32_decimal(buf, &response->body.data.str.size);
+    if (r < 0)
       return r;
     result += r;
     if ((r = buf_write_1(buf, "\r\n")) < 0)