commit 85b7f640c2dd0625d49d27e880abedcc6b18a52d
parent dae2db6af7b7dc33a9b2cdb1c88e0b17fef181b7
Author: Francesco Saccone <francesco@francescosaccone.com>
Date: Mon, 31 Mar 2025 19:51:03 +0200
fix: add final newline to raw response
Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/http.c b/http.c
@@ -55,7 +55,7 @@ compose_http_response(struct http_response response) {
"Content-Type: %s; charset=UTF-8\r\n"
"Content-Length: %u\r\n"
"\r\n"
- "%s",
+ "%s\n",
*status_message = status_map[response.status].message,
*content_type = response.content_type,
*body = response.body;