From: Daniel Stenberg Date: Sat, 4 May 2002 15:36:07 +0000 (+0000) Subject: made VERBOSE output more like it used to be, HEADER_IN is thus also ignored X-Git-Tag: curl-7_9_7-pre2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d321056e8d7acf527d0aa4a94471c89ba4dc2438;p=curl made VERBOSE output more like it used to be, HEADER_IN is thus also ignored by the internal debugfunction callback --- diff --git a/lib/sendf.c b/lib/sendf.c index 6d4ab1fb7..e20b147bf 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -392,13 +392,15 @@ int Curl_debug(struct SessionHandle *data, curl_infotype type, return (*data->set.fdebug)(data, type, ptr, size, data->set.debugdata); - if(type >= CURLINFO_DATA_IN) - /* don't do the data parts now */ - return 0; - - fwrite(s_infotype[type], 2, 1, data->set.err); - fwrite(ptr, size, 1, data->set.err); - + switch(type) { + case CURLINFO_TEXT: + case CURLINFO_HEADER_OUT: + fwrite(s_infotype[type], 2, 1, data->set.err); + fwrite(ptr, size, 1, data->set.err); + break; + default: /* nada */ + break; + } return 0; }