ffmpeg | branch: master | Robin Cooksey <robin.cook...@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 <j...@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);

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to