summaryrefslogtreecommitdiff
path: root/curl-config.in
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-05-25 17:33:28 +0900
committerDaniel Stenberg <daniel@haxx.se>2012-05-25 23:06:08 +0200
commitb061fed981c97bef78679f193173ab55a4dce91e (patch)
treea64b568cba77c5eee1ced652fdbd0ce9dd6ad4f4 /curl-config.in
parent9c480490f7559e169cea59754480f87d2763e2c2 (diff)
downloadcurl-b061fed981c97bef78679f193173ab55a4dce91e.tar.gz
Made -D option work with -O and -J.
To achieve this, first new structure HeaderData is defined to hold necessary data to perform header-related work. Then tool_header_cb now receives HeaderData pointer as userdata. All header-related work (currently, dumping header and Content-Disposition inspection) are done in this callback function. HeaderData.outs->config is used to determine whether each work is done. Unit tests were also updated because after this change, curl code always sets CURLOPT_HEADERFUNCTION and CURLOPT_HEADERDATA. Tested with -O -J -D, -O -J -i and -O -J -D -i and all worked fine.
Diffstat (limited to 'curl-config.in')
0 files changed, 0 insertions, 0 deletions