http.h

simple http library for c99
git clone git://git.kocotian.pl/http.h.git
Log | Files | Refs | README | LICENSE

commit c052e72b89c13f1863c61fc5e64ecd61f1dd5a93
parent e5dd5bbb66d50d529f44a3799fc875d64293fc23
Author: kocotian <54662947+kocotian@users.noreply.github.com>
Date:   Sun, 11 Oct 2020 17:08:54 +0200

Update README.md
Diffstat:
MREADME.md | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -25,8 +25,7 @@ main() { char *response, *data; long long int size; if(!(size = httpGET("suckless.org", 80, "/", &response))) return -1; - data = strstr(response, "\r\n\r\n") + 4; - printf("%s", data); + printf("%s", truncateHeader(response)); free(response); return 0; }