fix: Final before dementor (vive les decalages, quand on les a...)
This commit is contained in:
parent
dd87ff0fbe
commit
7633ac9de5
1 changed files with 7 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue