1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-25 01:28:51 -05:00

test3010: work with hyper mode

Closes #7209
This commit is contained in:
Daniel Stenberg 2021-06-09 13:40:55 +02:00
parent 71da3f8307
commit 77ae8f26ad
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 5 additions and 5 deletions

View File

@ -50,8 +50,8 @@ lib%TESTNUMBER
# Verify data after the test has been "shot" # Verify data after the test has been "shot"
<verify> <verify>
<stdout> <stdout>
Retry-After: 2 Retry-After 2
Retry-After: 0 Retry-After 0
</stdout> </stdout>
</verify> </verify>
</testcase> </testcase>

View 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 * This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms * 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_REDIRECT_URL, &follow_url);
curl_easy_getinfo(curl, CURLINFO_RETRY_AFTER, &retry_after); 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); curl_easy_setopt(curl, CURLOPT_URL, follow_url);
ret = curl_easy_perform(curl); ret = curl_easy_perform(curl);
if(ret) { if(ret) {
@ -54,7 +54,7 @@ int test(char *URL)
curl_easy_reset(curl); curl_easy_reset(curl);
curl_easy_getinfo(curl, CURLINFO_RETRY_AFTER, &retry_after); 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: test_cleanup: