aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib652.c
diff options
context:
space:
mode:
authorPatrick Monnerat <patrick@monnerat.net>2020-01-29 05:30:08 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-03-02 00:00:59 +0100
commitb2caaa0681f329eed317ffb6ae6927f4a539f0c1 (patch)
tree4b4bffa51ace56e703dc8f082b5af50a79d7dd8f /tests/libtest/lib652.c
parented0f357f7d25566110d4302f33759f4ffb5a6f83 (diff)
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 Reported-by: RuurdBeerstra on github
Diffstat (limited to 'tests/libtest/lib652.c')
-rw-r--r--tests/libtest/lib652.c5
1 files changed, 4 insertions, 1 deletions
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, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, 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);