diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-01-27 16:27:53 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-01-27 16:27:53 +0300 |
commit | e0cb9221febf35fca0e8de5623ac7a92fc71b6b8 (patch) | |
tree | f3672cb534c8c106aeceec1b365795a205945110 | |
parent | 07008a6f08edf14b6334cbedb0b314611334f402 (diff) | |
download | libmicrohttpd-e0cb9221febf35fca0e8de5623ac7a92fc71b6b8.tar.gz libmicrohttpd-e0cb9221febf35fca0e8de5623ac7a92fc71b6b8.zip |
test_quiesce: minor code unification
-rw-r--r-- | src/testcurl/test_quiesce.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/testcurl/test_quiesce.c b/src/testcurl/test_quiesce.c index 1e0eb0c4..f9bca831 100644 --- a/src/testcurl/test_quiesce.c +++ b/src/testcurl/test_quiesce.c | |||
@@ -331,11 +331,10 @@ setupCURL (void *cbc) | |||
331 | (CURLE_OK != curl_easy_setopt (c, CURLOPT_ERRORBUFFER, | 331 | (CURLE_OK != curl_easy_setopt (c, CURLOPT_ERRORBUFFER, |
332 | libcurl_errbuf)) || | 332 | libcurl_errbuf)) || |
333 | (CURLE_OK != curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L)) || | 333 | (CURLE_OK != curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L)) || |
334 | ((oneone) ? | 334 | (CURLE_OK != curl_easy_setopt (c, CURLOPT_HTTP_VERSION, |
335 | (CURLE_OK != curl_easy_setopt (c, CURLOPT_HTTP_VERSION, | 335 | (oneone) ? |
336 | CURL_HTTP_VERSION_1_1)) : | 336 | CURL_HTTP_VERSION_1_1 : |
337 | (CURLE_OK != curl_easy_setopt (c, CURLOPT_HTTP_VERSION, | 337 | CURL_HTTP_VERSION_1_0))) |
338 | CURL_HTTP_VERSION_1_0)))) | ||
339 | libcurlErrorExitDesc ("curl_easy_setopt() failed"); | 338 | libcurlErrorExitDesc ("curl_easy_setopt() failed"); |
340 | return c; | 339 | return c; |
341 | } | 340 | } |