diff options
author | Patrick Monnerat <patrick@monnerat.net> | 2020-03-07 12:00:56 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-03-07 23:26:15 +0100 |
commit | e5b366c0b5ff1796a7b86a721ee572cdc3dda0f2 (patch) | |
tree | 32bfe8035534f19b5bc65fe64087dfc0ed6e4fd8 /tests/libtest/lib652.c | |
parent | 1e4cb333ef632bf081045bb7b36f0736bec52708 (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
Closes #4833
Reported-by: RuurdBeerstra on github
Diffstat (limited to 'tests/libtest/lib652.c')
-rw-r--r-- | tests/libtest/lib652.c | 5 |
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); |