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:
parent
e3fae6e678
commit
62c42d41e3
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user