From 5385450afd61328e7d24b50eeffc2b1571cd9e2f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 16 Jun 2017 11:30:36 +0200 Subject: curl: prevent binary output spewed to terminal ... unless "--output -" is used. Binary detection is done by simply checking for a binary zero in early data. Added test 1425 1426 to verify. Closes #1512 --- tests/data/Makefile.inc | 2 +- tests/data/test1425 | Bin 0 -> 1726 bytes tests/data/test1426 | Bin 0 -> 1663 bytes 3 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 tests/data/test1425 create mode 100644 tests/data/test1426 (limited to 'tests/data') diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index d5f892e4c..4f3428987 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -151,7 +151,7 @@ test1396 test1397 test1398 \ test1400 test1401 test1402 test1403 test1404 test1405 test1406 test1407 \ test1408 test1409 test1410 test1411 test1412 test1413 test1414 test1415 \ test1416 test1417 test1418 test1419 test1420 test1421 test1422 test1423 \ -test1424 \ +test1424 test1425 test1426 \ test1428 test1429 test1430 test1431 test1432 test1433 test1434 test1435 \ test1436 test1437 test1438 test1439 test1440 test1441 test1442 test1443 \ test1444 test1445 test1446 \ diff --git a/tests/data/test1425 b/tests/data/test1425 new file mode 100644 index 000000000..0044c69d5 Binary files /dev/null and b/tests/data/test1425 differ diff --git a/tests/data/test1426 b/tests/data/test1426 new file mode 100644 index 000000000..dd6a8d117 Binary files /dev/null and b/tests/data/test1426 differ -- cgit v1.2.3