mirror of https://github.com/mpv-player/mpv
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:
parent
d9961ce7c5
commit
df3b9f3b24
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue