1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

[curl] redirect also for 302

This commit is contained in:
Witold Filipczyk 2023-06-29 19:52:24 +02:00
parent e3fae6e678
commit 62c42d41e3

View File

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