mirror of
https://github.com/curl/curl.git
synced 2026-08-26 17:43:31 +03:00
tool: prepend output_dir in header callback
When Content-Disposition parsing is used and an output dir is prepended, make sure to store that new file name correctly so that it can be used for setting the file timestamp when --remote-time is used. Extended test 3012 to verify. Co-Authored-by: Jay Satiro Reported-by: hgdagon on github Fixes #12614 Closes #12617
This commit is contained in:
parent
1d8e8c9ad1
commit
941b56d790
3 changed files with 12 additions and 17 deletions
|
|
@ -4,6 +4,7 @@
|
|||
-O
|
||||
-J
|
||||
--output-dir
|
||||
--remote-time
|
||||
</keywords>
|
||||
</info>
|
||||
#
|
||||
|
|
@ -36,10 +37,10 @@ http
|
|||
http
|
||||
</features>
|
||||
<name>
|
||||
--output-dir with -J
|
||||
--output-dir with -J and -R
|
||||
</name>
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/this/is/the/%TESTNUMBER -OJ --output-dir %PWD/%LOGDIR
|
||||
http://%HOSTIP:%HTTPPORT/this/is/the/%TESTNUMBER -OJR --output-dir %PWD/%LOGDIR
|
||||
</command>
|
||||
</client>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue