From e22108240b9ac0f67a7f8afb71501e03aab9770c Mon Sep 17 00:00:00 2001 From: Robin Cooksey Date: Wed, 13 Jan 2021 15:27:50 +0000 Subject: [PATCH] lavf/http: treat 308 as 301 FFmpeg does not support POST, so there is no difference between a 308 and 301 request (see [RFC7538] section 3). Signed-off-by: Josh Dekker --- libavformat/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/http.c b/libavformat/http.c index 76f0a67c61..c5df1def62 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -348,7 +348,7 @@ redo: goto fail; } if ((s->http_code == 301 || s->http_code == 302 || - s->http_code == 303 || s->http_code == 307) && + s->http_code == 303 || s->http_code == 307 || s->http_code == 308) && location_changed == 1) { /* url moved, get next */ ffurl_closep(&s->hd);