Use HTTP/1.1 for all TLS tests

Nobody is using HTTP/1.0 with TLS
This commit is contained in:
Evgeny Grin (Karlson2k)
2022-04-21 13:40:09 +03:00
parent 671ad58593
commit 166b572354
4 changed files with 5 additions and 4 deletions
+1
View File
@@ -241,6 +241,7 @@ main (int argc, char *const *argv)
unsigned int errorCount = 0;
(void) argc; /* Unused. Silent compiler warning. */
oneone = 1;
if (! testsuite_curl_global_init ())
return 99;
if (NULL == curl_version_info (CURLVERSION_NOW)->ssl_version)
+1 -1
View File
@@ -268,7 +268,7 @@ main (int argc, char *const *argv)
unsigned int errorCount = 0;
(void) argc; /* Unused. Silent compiler warning. */
oneone = 0;
oneone = 1;
if (! testsuite_curl_global_init ())
return 99;
if (NULL == curl_version_info (CURLVERSION_NOW)->ssl_version)
+1 -1
View File
@@ -204,7 +204,7 @@ do_get (const char *url, int port)
#endif
curl_easy_setopt (c, CURLOPT_URL, url);
curl_easy_setopt (c, CURLOPT_PORT, (long) port);
curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_easy_setopt (c, CURLOPT_TIMEOUT, 10L);
curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 10L);
curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, &copyBuffer);
+2 -2
View File
@@ -95,7 +95,7 @@ test_daemon_get (void *cls,
#endif
if ((CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_URL, url))) ||
(CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_HTTP_VERSION,
CURL_HTTP_VERSION_1_0))) ||
CURL_HTTP_VERSION_1_1))) ||
(CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_TIMEOUT, 10L))) ||
(CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 10L))) ||
(CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_WRITEFUNCTION,
@@ -280,7 +280,7 @@ send_curl_req (char *url,
#endif
if ((CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_URL, url))) ||
(CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_HTTP_VERSION,
CURL_HTTP_VERSION_1_0))) ||
CURL_HTTP_VERSION_1_1))) ||
(CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_TIMEOUT, 60L))) ||
(CURLE_OK != (e = curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 60L))) ||