[MPlayer-cvslog] r32717 - trunk/stream/http.c
cboesch
subversion at mplayerhq.hu
Thu Dec 16 20:58:36 CET 2010
Author: cboesch
Date: Thu Dec 16 20:58:35 2010
New Revision: 32717
Log:
Add support for HTTP 307 (Temporary Redirect) responses.
Patch by chocolateboy (chocolateboy from cpan org)
Modified:
trunk/stream/http.c
Modified: trunk/stream/http.c
==============================================================================
--- trunk/stream/http.c Wed Dec 15 14:34:44 2010 (r32716)
+++ trunk/stream/http.c Thu Dec 16 20:58:35 2010 (r32717)
@@ -240,6 +240,7 @@ static int nop_streaming_start( stream_t
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" );
@@ -813,6 +814,7 @@ static int http_streaming_start(stream_t
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 ) {
More information about the MPlayer-cvslog
mailing list