From f8973099ba7162d30ca1bb770c78a073ffea1c90 Mon Sep 17 00:00:00 2001 From: cboesch Date: Thu, 16 Dec 2010 19:58:35 +0000 Subject: 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 --- stream/http.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stream') 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 ) { -- cgit v1.2.3