]> granicus.if.org Git - curl/commitdiff
set header and request size to 0 before each *_perform()
authorDaniel Stenberg <daniel@haxx.se>
Sun, 27 Jan 2002 11:49:17 +0000 (11:49 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 27 Jan 2002 11:49:17 +0000 (11:49 +0000)
lib/getinfo.c

index cdb69ca7234e4aeb864768ac4202dfeda290b775..51ceacbe611fffba43a2100b26b449bd8362247e 100644 (file)
@@ -48,6 +48,8 @@ CURLcode Curl_initinfo(struct SessionHandle *data)
   info->httpcode = 0;
   info->httpversion=0;
   info->filetime=-1; /* -1 is an illegal time and thus means unknown */
+  info->header_size = 0;
+  info->request_size = 0;
 
   return CURLE_OK;
 }