--- 35-reproxy.t.orig 2007-09-26 20:51:11.000000000 -0700 +++ 35-reproxy.t 2007-09-26 20:53:22.000000000 -0700 @@ -133,6 +133,9 @@ # try to reproxy to a list of URLs, where the first one is bogus, and last one is good ok_reproxy_url_list(); +# try to reproxy to a list of URLs, where the first one is a 404, and last one is good +ok_reproxy_url_list_404(); + # responses to HEAD requests should not have a body { $wc->keepalive(0); @@ -154,6 +157,11 @@ ok($resp->content eq $file_content, "reproxy URL w/ dead one first"); } +sub ok_reproxy_url_list_404 { + my $resp = $wc->request("reproxy_url:http://127.0.0.1:$webport/baz.txt http://127.0.0.1:$webport/foo.txt"); + ok($resp->content eq $file_content, "reproxy URL w/ 404 one first"); +} + sub ok_reproxy_file { my $resp = $wc->request("reproxy_file:$dir/foo.txt"); ok($resp && $resp->content eq $file_content, "reproxy file");