]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test3010: work with hyper mode
authorDaniel Stenberg <daniel@haxx.se>
Wed, 9 Jun 2021 11:40:55 +0000 (13:40 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 10 Jun 2021 06:42:50 +0000 (08:42 +0200)
Closes #7209

tests/data/test3010
tests/libtest/lib3010.c

index d69b1ae655a7dc622525bdc29b8ea3915b770280..df5aadb4f27b60d233ed69020aaf7aa547153e3a 100644 (file)
@@ -50,8 +50,8 @@ lib%TESTNUMBER
 # Verify data after the test has been "shot"
 <verify>
 <stdout>
-Retry-After: 2
-Retry-After: 0
+Retry-After 2
+Retry-After 0
 </stdout>
 </verify>
 </testcase>
index a52536d77ce7b2cc50de4ca2a248ca358586df84..199d53ca99818189185ba8dd1979e185200fa93f 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 2020 - 2020, Nicolas Sterchele, <nicolas@sterchelen.net>
+ * Copyright (C) 2020 - 2021, Nicolas Sterchele, <nicolas@sterchelen.net>
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -43,7 +43,7 @@ int test(char *URL)
     }
     curl_easy_getinfo(curl, CURLINFO_REDIRECT_URL, &follow_url);
     curl_easy_getinfo(curl, CURLINFO_RETRY_AFTER, &retry_after);
-    printf("Retry-After: %" CURL_FORMAT_CURL_OFF_T "\n", retry_after);
+    printf("Retry-After %" CURL_FORMAT_CURL_OFF_T "\n", retry_after);
     curl_easy_setopt(curl, CURLOPT_URL, follow_url);
     ret = curl_easy_perform(curl);
     if(ret) {
@@ -54,7 +54,7 @@ int test(char *URL)
 
     curl_easy_reset(curl);
     curl_easy_getinfo(curl, CURLINFO_RETRY_AFTER, &retry_after);
-    printf("Retry-After: %" CURL_FORMAT_CURL_OFF_T "\n", retry_after);
+    printf("Retry-After %" CURL_FORMAT_CURL_OFF_T "\n", retry_after);
   }
 
 test_cleanup: