summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorcboesch <cboesch@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-12-16 19:58:35 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-29 02:40:56 +0200
commitf8973099ba7162d30ca1bb770c78a073ffea1c90 (patch)
tree27a4925cae56426e1d9bace947d0a383078a1b7b /stream
parentda8c1995056dd6dfb982d612dcd238ae925bd90c (diff)
downloadmpv-f8973099ba7162d30ca1bb770c78a073ffea1c90.tar.bz2
mpv-f8973099ba7162d30ca1bb770c78a073ffea1c90.tar.xz
stream/http: support 307 (Temporary Redirect) responses
Patch by chocolateboy (chocolateboy from cpan org) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32717 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/http.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/http.c b/stream/http.c
index 34ef49e681..1e7b8dab76 100644
--- a/stream/http.c
+++ b/stream/http.c
@@ -242,6 +242,7 @@ static int nop_streaming_start( stream_t *stream ) {
case 301: // Permanently
case 302: // Temporarily
case 303: // See Other
+ case 307: // Temporarily (since HTTP/1.1)
ret=-1;
next_url = http_get_field( http_hdr, "Location" );
@@ -815,6 +816,7 @@ static int http_streaming_start(stream_t *stream, int* file_format) {
case 301: // Permanently
case 302: // Temporarily
case 303: // See Other
+ case 307: // Temporarily (since HTTP/1.1)
// TODO: RFC 2616, recommand to detect infinite redirection loops
next_url = http_get_field( http_hdr, "Location" );
if( next_url!=NULL ) {