From 7633ac9de518d0e34816b1948084d592be730b53 Mon Sep 17 00:00:00 2001 From: "Gu://em_" Date: Wed, 26 Nov 2025 23:38:21 +0100 Subject: [PATCH] fix: Final before dementor (vive les decalages, quand on les a...) --- httpd/src/http/http.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/httpd/src/http/http.c b/httpd/src/http/http.c index 954d932..8977ee0 100644 --- a/httpd/src/http/http.c +++ b/httpd/src/http/http.c @@ -320,10 +320,16 @@ struct string *format_response(struct http_response *resp) string_concat_str(res, " ", 1); // Status message - string_concat_str(res, buf, strlen(buf)); + char *status_msg = string_to_charptr(resp->status_msg); + string_concat_str(res, status_msg, strlen(status_msg)); + free(status_msg); string_concat_str(res, "\r\n", 2); + // Time + char *time = get_time(); + string_concat_str(res, time, strlen(time)); + // Headers struct http_header *cur_header = resp->headers; while (cur_header != NULL)