diff stream/http.c @ 32630:2653cb380532

Add support for HTTP 307 (Temporary Redirect) responses. Patch by chocolateboy (chocolateboy from cpan org)
author cboesch
date Thu, 16 Dec 2010 19:58:35 +0000
parents be61988fb5c4
children 146fb0958630
line wrap: on
line diff
--- a/stream/http.c	Wed Dec 15 13:34:44 2010 +0000
+++ b/stream/http.c	Thu Dec 16 19:58:35 2010 +0000
@@ -240,6 +240,7 @@
 			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 @@
 			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 ) {