From: nishi Date: Sat, 20 Jan 2024 09:22:39 +0000 (+0000) Subject: header thing X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=1b0b4fda3258843845b7ca3b53fae5deef3382ba;p=libw3.git header thing git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@34 d27a3e52-49c5-7645-884c-6793ebffc270 --- 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); } } }