summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-08-20 11:47:33 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-08-20 11:47:33 +0000
commitdf3b9f3b24f0b065bc6b8f3cb97a8c6a734baef2 (patch)
treea77691627f9e7e1933b12cd25a6ed7bd633d994c /stream
parentd9961ce7c56cc5bae665e7e41060330dc8fda4f7 (diff)
downloadmpv-df3b9f3b24f0b065bc6b8f3cb97a8c6a734baef2.tar.bz2
mpv-df3b9f3b24f0b065bc6b8f3cb97a8c6a734baef2.tar.xz
Handle 303 (See Other) redirect, part of a patch by Benjamin Zores (ben at geexbox org)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19465 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 753075cc3d..5634356991 100644
--- a/stream/http.c
+++ b/stream/http.c
@@ -224,6 +224,7 @@ static int nop_streaming_start( stream_t *stream ) {
// Redirect
case 301: // Permanently
case 302: // Temporarily
+ case 303: // See Other
ret=-1;
next_url = http_get_field( http_hdr, "Location" );
@@ -829,6 +830,7 @@ static int http_streaming_start(stream_t *stream, int* file_format) {
// Redirect
case 301: // Permanently
case 302: // Temporarily
+ case 303: // See Other
// TODO: RFC 2616, recommand to detect infinite redirection loops
next_url = http_get_field( http_hdr, "Location" );
if( next_url!=NULL ) {