Patch by Mike Edenfield, kutulu at kutulu dot org Originally committed as revision 25651 to svn://svn.ffmpeg.org/ffmpeg/trunk
Unified · Split
| @@ -138,7 +138,8 @@ static int http_open_cnx(URLContext *h) · 137 unmodified lines | ||
| 138 | 138 | } else |
| 139 | 139 | goto fail; |
| 140 | 140 | } |
| 141 | − if ((s->http_code == 302 || s->http_code == 303) && location_changed == 1) { | |
| 141 | + if ((s->http_code == 301 || s->http_code == 302 || s->http_code == 303 || s->http_code == 307) | |
| 142 | + && location_changed == 1) { | |
| 142 | 143 | /* url moved, get next */ |
| 143 | 144 | url_close(hd); |
| 144 | 145 | if (redirects++ >= MAX_REDIRECTS) |