curl-library
Re: A bug in libcurl (maybe?)
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 6 Aug 2001 10:15:35 +0200 (MET DST)
Date: Mon, 6 Aug 2001 10:15:35 +0200 (MET DST)
On Sun, 5 Aug 2001, Daniel Stenberg wrote:
> I think so. The fix is very simple:
I don't think my fix was good enough. Let's instead make it depend on the
header callback _or_ the special header stream. So a patch to the 7.8 code
would look like:
--- sendf.c 2001/05/31 13:50:28 1.24
+++ sendf.c 2001/08/06 08:13:39
@@ -230,7 +230,8 @@
return CURLE_WRITE_ERROR;
}
}
- if((type & CLIENTWRITE_HEADER) && data->writeheader) {
+ if((type & CLIENTWRITE_HEADER) &&
+ (data->fwrite_header || data->writeheader) ) {
/*
* Write headers to the same callback or to the especially setup
* header callback function (added after version 7.7.1).
Comments?
-- Daniel Stenberg -- curl dude -- http://curl.haxx.se/ _______________________________________________ Curl-library mailing list http://curl.haxx.se/libcurl/Received on 2001-08-06