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
This commit is contained in:
reimar 2006-08-20 11:47:33 +00:00
parent d9961ce7c5
commit df3b9f3b24
1 changed files with 2 additions and 0 deletions

View File

@ -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 ) {