From 74b7ddc2c14b51dd364da1ecf534c7cbef5d54da Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 15 Feb 2020 02:38:52 +0300 Subject: Release version 7.67.0+6 Drop copyright notice from source code Make curl tests to follow location for 3xx HTTP responses --- libcurl/tests/basic/driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcurl/tests/basic/driver.c') diff --git a/libcurl/tests/basic/driver.c b/libcurl/tests/basic/driver.c index 4df9471..f784a88 100644 --- a/libcurl/tests/basic/driver.c +++ b/libcurl/tests/basic/driver.c @@ -1,5 +1,4 @@ /* file : tests/basic/driver.c - * copyright : Copyright (c) 2009-2019 Code Synthesis Tools CC * license : cURL License; see accompanying COPYING file */ #include @@ -27,6 +26,7 @@ main (int argc, char* argv[]) if (curl != NULL) { curl_easy_setopt (curl, CURLOPT_URL, url); + curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1L); CURLcode cr = curl_easy_perform (curl); @@ -37,7 +37,7 @@ main (int argc, char* argv[]) if (cr == CURLE_OK) { - if (status < 400) + if (status == 200) r = 0; else fprintf (stderr, "HTTP error: status code %ld\n", status); -- cgit v1.1