fix: Final before dementor (vive les decalages, quand on les a...)

This commit is contained in:
Gu://em_ 2025-11-26 23:38:21 +01:00
parent dd87ff0fbe
commit 7633ac9de5

View file

@ -320,10 +320,16 @@ struct string *format_response(struct http_response *resp)
string_concat_str(res, " ", 1); string_concat_str(res, " ", 1);
// Status message // 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); string_concat_str(res, "\r\n", 2);
// Time
char *time = get_time();
string_concat_str(res, time, strlen(time));
// Headers // Headers
struct http_header *cur_header = resp->headers; struct http_header *cur_header = resp->headers;
while (cur_header != NULL) while (cur_header != NULL)