mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
9c513edb79
commit
e22108240b
|
@ -348,7 +348,7 @@ redo:
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
if ((s->http_code == 301 || s->http_code == 302 ||
|
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) {
|
location_changed == 1) {
|
||||||
/* url moved, get next */
|
/* url moved, get next */
|
||||||
ffurl_closep(&s->hd);
|
ffurl_closep(&s->hd);
|
||||||
|
|
Loading…
Reference in New Issue