diff options
Diffstat (limited to 'tests/libtest/lib549.c')
-rw-r--r-- | tests/libtest/lib549.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/libtest/lib549.c b/tests/libtest/lib549.c index e196aba56..4a3ee7bec 100644 --- a/tests/libtest/lib549.c +++ b/tests/libtest/lib549.c @@ -32,16 +32,19 @@ int test(char *URL) return TEST_ERR_MAJOR_BAD; } - curl_easy_setopt(curl, CURLOPT_PROXY, libtest_arg2); - curl_easy_setopt(curl, CURLOPT_URL, URL); - curl_easy_setopt(curl, CURLOPT_PROXY_TRANSFER_MODE, 1L); - curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); - if(libtest_arg3) + test_setopt(curl, CURLOPT_PROXY, libtest_arg2); + test_setopt(curl, CURLOPT_URL, URL); + test_setopt(curl, CURLOPT_PROXY_TRANSFER_MODE, 1L); + test_setopt(curl, CURLOPT_VERBOSE, 1L); + if(libtest_arg3) { /* enable ascii/text mode */ - curl_easy_setopt(curl, CURLOPT_TRANSFERTEXT, 1L); + test_setopt(curl, CURLOPT_TRANSFERTEXT, 1L); + } res = curl_easy_perform(curl); +test_cleanup: + curl_easy_cleanup(curl); curl_global_cleanup(); |