made VERBOSE output more like it used to be, HEADER_IN is thus also ignored
by the internal debugfunction callback
This commit is contained in:
parent
d9a1a59f22
commit
d321056e8d
16
lib/sendf.c
16
lib/sendf.c
@ -392,13 +392,15 @@ int Curl_debug(struct SessionHandle *data, curl_infotype type,
|
|||||||
return (*data->set.fdebug)(data, type, ptr, size,
|
return (*data->set.fdebug)(data, type, ptr, size,
|
||||||
data->set.debugdata);
|
data->set.debugdata);
|
||||||
|
|
||||||
if(type >= CURLINFO_DATA_IN)
|
switch(type) {
|
||||||
/* don't do the data parts now */
|
case CURLINFO_TEXT:
|
||||||
return 0;
|
case CURLINFO_HEADER_OUT:
|
||||||
|
fwrite(s_infotype[type], 2, 1, data->set.err);
|
||||||
fwrite(s_infotype[type], 2, 1, data->set.err);
|
fwrite(ptr, size, 1, data->set.err);
|
||||||
fwrite(ptr, size, 1, data->set.err);
|
break;
|
||||||
|
default: /* nada */
|
||||||
|
break;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user