curl-users
Re: ssl binary D/L with no headers duplicates the first 8192 bytes
Date: Fri, 11 Oct 2002 22:54:01 +0200 (MET DST)
On Fri, 11 Oct 2002, Roth, Kevin P. wrote:
> After working with Daniel to identify and fix the problem, I thought it was
> working OK. But I've discovered that the first 8192 (0x2000) bytes are
> getting written out twice in a row into the output file. E.g.:
Kevin has confirmed that this little patch fixes this:
diff -u -r1.115 transfer.c
--- lib/transfer.c 9 Oct 2002 13:03:51 -0000 1.115
+++ lib/transfer.c 11 Oct 2002 20:29:21 -0000
@@ -817,6 +817,7 @@
k->hbuflen);
k->badheader = FALSE; /* taken care of now */
}
+ else
/* This switch handles various content encodings. If there's an
error here, be sure to check over the almost identical code in
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sfReceived on 2002-10-11