]> Nishi Git Mirror - libw3.git/commitdiff
header thing
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Sat, 20 Jan 2024 09:22:39 +0000 (09:22 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Sat, 20 Jan 2024 09:22:39 +0000 (09:22 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@34 d27a3e52-49c5-7645-884c-6793ebffc270

Library/HTTP.c

index 35fc622551358e0e6197ffda244aed8569171ae9..11f7e91f842be78626cf69966165f95064d5e30d 100644 (file)
@@ -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);
                        }
                }
        }