Mercurial > libavformat.hg
changeset 1852:467a411b5d26 libavformat
make HTTP MOVED messages also work in ffmpeg (302 is essentially the same as 303).
patch by "Ronald S. Bultje" % rbultje A ronald P bitfreak P net%
original thread:
Date: Mar 4, 2007 1:21 AM
Subject: [Ffmpeg-devel] http move
author | gpoirier |
---|---|
date | Sun, 04 Mar 2007 11:52:46 +0000 |
parents | 5535b52e5bd4 |
children | c704f9d730bf |
files | http.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/http.c Sun Mar 04 01:58:10 2007 +0000 +++ b/http.c Sun Mar 04 11:52:46 2007 +0000 @@ -96,7 +96,7 @@ s->hd = hd; if (http_connect(h, path, hoststr, auth, &location_changed) < 0) goto fail; - if (s->http_code == 303 && location_changed == 1) { + if ((s->http_code == 302 || s->http_code == 303) && location_changed == 1) { /* url moved, get next */ url_close(hd); if (redirects++ >= MAX_REDIRECTS)