X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Funit_core_engine_cgi-prepare_path.t;fp=t%2Faggregate%2Funit_core_engine_cgi-prepare_path.t;h=f8b08ef86bfdd547dd122eefff7f009cb893ed33;hb=b760ac3de30354fa5e1e7969c21f31521f0d1783;hp=dd768f4570ef6322bc5b4ef24e648199057697c5;hpb=1565e158ff4a868e199a99b779e6669ca1d9c53c;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate/unit_core_engine_cgi-prepare_path.t b/t/aggregate/unit_core_engine_cgi-prepare_path.t index dd768f4..f8b08ef 100644 --- a/t/aggregate/unit_core_engine_cgi-prepare_path.t +++ b/t/aggregate/unit_core_engine_cgi-prepare_path.t @@ -50,6 +50,20 @@ use Catalyst::Engine::CGI; is ''.$r->base, 'http://www.foo.com/~bobtfish/Gitalist/script/gitalist.cgi/'; } +# Using rewrite rules to ask for a sub-path in your app. +# E.g. RewriteRule ^(.*)$ /path/to/fastcgi/domainprofi.fcgi/iframeredirect$1 [L,NS] +{ + my $r = get_req ( + PATH_INFO => '/iframeredirect/info', + SCRIPT_NAME => '', + REQUEST_URI => '/info', + ); + is ''.$r->uri, 'http://www.foo.com/iframeredirect/info'; + is ''.$r->base, 'http://www.foo.com/'; +} + + + # FIXME - Test proxy logic # - Test query string # - Test non standard port numbers