mirror of
https://github.com/curl/curl.git
synced 2026-07-24 01:47:20 +03:00
http: explicitly ignore parsing errors for Retry-After
Add (void) and explain in comment. Closes #17682
This commit is contained in:
parent
b2eb444922
commit
e60103cbb8
1 changed files with 2 additions and 2 deletions
|
|
@ -3293,8 +3293,8 @@ static CURLcode http_header_r(struct Curl_easy *data,
|
|||
retry_after = date - current;
|
||||
}
|
||||
else
|
||||
/* Try it as a decimal number */
|
||||
curlx_str_number(&v, &retry_after, CURL_OFF_T_MAX);
|
||||
/* Try it as a decimal number, ignore errors */
|
||||
(void)curlx_str_number(&v, &retry_after, CURL_OFF_T_MAX);
|
||||
/* limit to 6 hours max. this is not documented so that it can be changed
|
||||
in the future if necessary. */
|
||||
if(retry_after > 21600)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue