[FFmpeg-cvslog] lavf/http: treat 308 as 301
Robin Cooksey
git at videolan.org
Mon Jan 25 10:40:27 EET 2021
ffmpeg | branch: master | Robin Cooksey <robin.cooksey at bowerswilkins.com> | Wed Jan 13 15:27:50 2021 +0000| [e22108240b9ac0f67a7f8afb71501e03aab9770c] | committer: Josh Dekker
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 <josh at itanimul.li>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e22108240b9ac0f67a7f8afb71501e03aab9770c
---
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);
More information about the ffmpeg-cvslog
mailing list