From 6412aab83315a16858e24fed3118b3d00bca54fa Mon Sep 17 00:00:00 2001 From: Francesco Cozzuto Date: Tue, 22 Jul 2025 12:03:49 +0200 Subject: [PATCH] Update README --- README.md | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 375a29e..ac34f93 100644 --- a/README.md +++ b/README.md @@ -16,20 +16,16 @@ make libchttp.a If you used the amalgamated files, this are the flags required to build a project with cHTTP: ```bash -# Linux (no HTTPS) +# Linux gcc your_app.c chttp.c -# Windows (no HTTPS) +# Windows gcc your_app.c chttp.c -lws2_32 - -# Linux (with HTTPS) -gcc your_app.c chttp.c -DHTTPS_ENABLED -lssl -lcrypto - -# Windows (with HTTPS) -gcc your_app.c chttp.c -DHTTPS_ENABLED -lssl -lcrypto -lws2_32 ``` -Ff you are using the static library, instead if adding `chttp.c`, you will need to add the `-lchttp` flag. +If you are using the static library, instead if adding `chttp.c`, you will need to add the `-lchttp` flag. + +By defalt the library is build without HTTPS. To enable it, add the flags `-DHTTPS_ENABLED -lssl -lcrypto`. ## Features & Limitations