diff options
author | Robin Cooksey <robin.cooksey@bowerswilkins.com> | 2021-01-13 15:27:50 +0000 |
---|---|---|
committer | Josh Dekker <josh@itanimul.li> | 2021-01-25 09:36:47 +0100 |
commit | e22108240b9ac0f67a7f8afb71501e03aab9770c (patch) | |
tree | f1c6099df2666efff92a0232d9df39f19821190b /libavformat/http.c | |
parent | 9c513edb7999a35ddcc6e3a8d984a96c8fb492a3 (diff) | |
download | ffmpeg-e22108240b9ac0f67a7f8afb71501e03aab9770c.tar.gz |
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@itanimul.li>
Diffstat (limited to 'libavformat/http.c')
-rw-r--r-- | libavformat/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |