1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00

[curl] 308 is redirect too.

This commit is contained in:
Witold Filipczyk 2023-07-09 17:02:39 +02:00
parent 868234cb13
commit edf2b4b147

View File

@ -385,7 +385,7 @@ http_curl_check_redirect(struct connection *conn)
return NULL;
}
if (http->code == 301L || http->code == 302L) {
if (http->code == 301L || http->code == 302L || http->code == 308L) {
char *url = NULL;
curl_easy_getinfo(http->easy, CURLINFO_REDIRECT_URL, &url);