From 1b0b4fda3258843845b7ca3b53fae5deef3382ba Mon Sep 17 00:00:00 2001 From: nishi Date: Sat, 20 Jan 2024 09:22:39 +0000 Subject: [PATCH] header thing git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@34 d27a3e52-49c5-7645-884c-6793ebffc270 --- Library/HTTP.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Library/HTTP.c b/Library/HTTP.c index 35fc622..11f7e91 100644 --- a/Library/HTTP.c +++ b/Library/HTTP.c @@ -92,6 +92,13 @@ void __W3_HTTP_Request(struct W3* w3){ statusbuf[strlen(oldbuf) + 1] = 0; free(oldbuf); } + }else if(phase == 1){ + char* oldbuf = headerbuf; + headerbuf = malloc(strlen(oldbuf) + 2); + strcpy(headerbuf, oldbuf); + headerbuf[strlen(oldbuf)] = buf[i]; + headerbuf[strlen(oldbuf) + 1] = 0; + free(oldbuf); } } } -- 2.43.0