mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
the default debugfunction shows incoming headers as well
This commit is contained in:
parent
a4ffcfd4d5
commit
3c3ad134ea
@ -408,6 +408,7 @@ int Curl_debug(struct SessionHandle *data, curl_infotype type,
|
|||||||
switch(type) {
|
switch(type) {
|
||||||
case CURLINFO_TEXT:
|
case CURLINFO_TEXT:
|
||||||
case CURLINFO_HEADER_OUT:
|
case CURLINFO_HEADER_OUT:
|
||||||
|
case CURLINFO_HEADER_IN:
|
||||||
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;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user