diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-05-20 13:21:00 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-05-23 23:12:53 +0200 |
commit | 006d2991bd8dd08e8bdc6f186ef242451ace0c0f (patch) | |
tree | 931d10597a04adf7dc2b5095a7bc7d20efe739ac /tests | |
parent | 421171a8d4d8a59a02fa471d049280b33ea0e48a (diff) | |
download | curl-006d2991bd8dd08e8bdc6f186ef242451ace0c0f.tar.gz |
curl: remove -J "informational" written on stdout
curl would previously show "curl: Saved to filename 'name from header'"
if -J was used and a name was picked from the Content-Disposition
header. That output could interfer with other stdout output, such as -w.
This commit removes that output line.
Bug: https://curl.haxx.se/mail/archive-2020-05/0044.html
Reported-by: Коваленко Анатолий Викторович
Closes #5435
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/test1340 | 4 | ||||
-rw-r--r-- | tests/data/test1341 | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/data/test1340 b/tests/data/test1340 index 81f1ed68d..644fb2b51 100644 --- a/tests/data/test1340 +++ b/tests/data/test1340 @@ -40,7 +40,7 @@ HTTP GET with -O -J and Content-Disposition, -D file CURL_TESTDIR=%PWD/log </setenv> <command option="no-output,no-include"> -http://%HOSTIP:%HTTPPORT/1340 -J -O -D log/heads1340 +http://%HOSTIP:%HTTPPORT/1340 -J -O -D log/heads1340 -w "curl: Saved to filename %{filename_effective}\n" </command> </client> @@ -73,7 +73,7 @@ Content-Disposition: filename=name1340; charset=funny; option=strange </file2> <file3 name="log/stdout1340" mode="text"> -curl: Saved to filename '%PWD/log/name1340' +curl: Saved to filename %PWD/log/name1340 </file3> </verify> diff --git a/tests/data/test1341 b/tests/data/test1341 index b364edeb1..ae226744c 100644 --- a/tests/data/test1341 +++ b/tests/data/test1341 @@ -40,7 +40,7 @@ HTTP GET with -O -J and Content-Disposition, -D stdout CURL_TESTDIR=%PWD/log </setenv> <command option="no-output,no-include"> -http://%HOSTIP:%HTTPPORT/1341 -J -O -D - +http://%HOSTIP:%HTTPPORT/1341 -J -O -D - -w "curl: Saved to filename %{filename_effective}\n" </command> </client> @@ -70,7 +70,7 @@ Connection: close Content-Type: text/html
Content-Disposition: filename=name1341; charset=funny; option=strange
-curl: Saved to filename '%PWD/log/name1341' +curl: Saved to filename %PWD/log/name1341 </file2> </verify> |