Browse Source

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>
tags/n4.4
Robin Cooksey Josh Dekker 4 years ago
parent
commit
e22108240b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/http.c

+ 1
- 1
libavformat/http.c 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);


Loading…
Cancel
Save