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>
This commit is contained in:
Robin Cooksey 2021-01-13 15:27:50 +00:00 committed by Josh Dekker
parent 9c513edb79
commit e22108240b
1 changed files with 1 additions and 1 deletions

View File

@ -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);