]> granicus.if.org Git - curl/commitdiff
made VERBOSE output more like it used to be, HEADER_IN is thus also ignored
authorDaniel Stenberg <daniel@haxx.se>
Sat, 4 May 2002 15:36:07 +0000 (15:36 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 4 May 2002 15:36:07 +0000 (15:36 +0000)
by the internal debugfunction callback

lib/sendf.c

index 6d4ab1fb7d1092c4d88f635f50bf1d7cbd26f770..e20b147bfe843689ec20826e1441b46cdceed1fd 100644 (file)
@@ -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;
 }