changeset 19459:6dad4b1efb82

Handle 303 (See Other) redirect, part of a patch by Benjamin Zores (ben at geexbox org)
author reimar
date Sun, 20 Aug 2006 11:47:33 +0000
parents abb594925154
children 4553637b709b
files stream/http.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream/http.c	Sun Aug 20 11:03:19 2006 +0000
+++ b/stream/http.c	Sun Aug 20 11:47:33 2006 +0000
@@ -224,6 +224,7 @@
 			// 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 @@
 			// 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 ) {