summaryrefslogtreecommitdiff
path: root/src/tool_cb_hdr.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-06-09 05:42:39 +0200
committerYang Tse <yangsita@gmail.com>2012-06-09 05:49:49 +0200
commita884ffe43027e837e9fef41626c34e7f00bb2df1 (patch)
tree646933b193f8461eb2f33ade7f542ebe57ad397f /src/tool_cb_hdr.h
parentc29d1f4e3ad2152d6bdc990c45454a3a5b3bd224 (diff)
downloadcurl-a884ffe43027e837e9fef41626c34e7f00bb2df1.tar.gz
Fixes allowing 26 more test cases in 1334 to 1393 range to succeed
Diffstat (limited to 'src/tool_cb_hdr.h')
-rw-r--r--src/tool_cb_hdr.h25
1 files changed, 18 insertions, 7 deletions
diff --git a/src/tool_cb_hdr.h b/src/tool_cb_hdr.h
index 0300c0068..bd5043139 100644
--- a/src/tool_cb_hdr.h
+++ b/src/tool_cb_hdr.h
@@ -23,15 +23,26 @@
***************************************************************************/
#include "tool_setup.h"
-/* Structure to pass as userdata in tool_header_cb */
-typedef struct {
- /* getout object pointer currently processing */
- struct getout *urlnode;
- /* output stream */
+/*
+ * curl operates using a single HdrCbData struct variable, a
+ * pointer to this is passed as userdata pointer to tool_header_cb.
+ *
+ * 'outs' member is a pointer to the OutStruct variable used to keep
+ * track of information relative to curl's output writing.
+ *
+ * 'heads' member is a pointer to the OutStruct variable used to keep
+ * track of information relative to header response writing.
+ *
+ * 'honor_cd_filename' member is TRUE when tool_header_cb is allowed
+ * to honor Content-Disposition filename property and accordingly
+ * set 'outs' filename, otherwise FALSE;
+ */
+
+struct HdrCbData {
struct OutStruct *outs;
- /* header output stream */
struct OutStruct *heads;
-} HeaderData;
+ bool honor_cd_filename;
+};
/*
** callback for CURLOPT_HEADERFUNCTION