From 8010e0ec1bace4d5205995aec4ac0e6f3e69a5a6 Mon Sep 17 00:00:00 2001 From: Francesco Cozzuto Date: Sun, 20 Jul 2025 20:45:34 +0200 Subject: [PATCH] Update README --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e125d66..db4c768 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ And this is an HTTP server: int main(void) { + http_global_init(); HTTP_Server *server = http_server_init(HTTP_STR("127.0.0.1"), 8080); for (;;) { @@ -45,8 +46,8 @@ int main(void) HTTP_ResponseHandle res; http_server_wait(server, &res, &res); - HTTP_String path = req->url.path; - printf("requested path [%.*s]\n", HTTP_UNPACK(req->url.path)); + printf("requested path [%.*s]\n", + HTTP_UNPACK(req->url.path)); http_response_status(res, 200); http_response_header(res, "Content-Type: text/plain"); @@ -56,6 +57,7 @@ int main(void) } http_server_free(server); + http_global_free(); return 0; } ```