mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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;
|
||||
}
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user