# HG changeset patch # User cboesch # Date 1292529515 0 # Node ID 2653cb380532e0c1368847a0541135213f5a19a1 # Parent 7afaaaa3f4f4c34393b345524a451dafc2365b52 Add support for HTTP 307 (Temporary Redirect) responses. Patch by chocolateboy (chocolateboy from cpan org) diff -r 7afaaaa3f4f4 -r 2653cb380532 stream/http.c --- 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 ) {