From e5b366c0b5ff1796a7b86a721ee572cdc3dda0f2 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Sat, 7 Mar 2020 12:00:56 +0100 Subject: mime: fix the binary encoder to handle large data properly New test 666 checks this is effective. As upload buffer size is significant in this kind of tests, shorten it in similar test 652. Fixes #4860 Closes #4833 Reported-by: RuurdBeerstra on github --- tests/libtest/lib652.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/libtest/lib652.c') diff --git a/tests/libtest/lib652.c b/tests/libtest/lib652.c index 5c9cba5fb..3d247d27b 100644 --- a/tests/libtest/lib652.c +++ b/tests/libtest/lib652.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2018, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2020, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -105,6 +105,9 @@ int test(char *URL) /* send a multi-part mail */ test_setopt(curl, CURLOPT_MIMEPOST, mime); + /* Shorten upload buffer. */ + test_setopt(curl, CURLOPT_UPLOAD_BUFFERSIZE, 16411L); + /* get verbose debug output please */ test_setopt(curl, CURLOPT_VERBOSE, 1L); -- cgit v1.2.3