From: Tomas Doran Date: Thu, 28 Jan 2010 18:15:10 +0000 (+0000) Subject: And test the non root app case X-Git-Tag: 5.80019~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=a9a405db0d420172e69219fd71d2d39fd56167cf And test the non root app case --- diff --git a/t/aggregate/unit_core_engine_cgi-prepare_path.t b/t/aggregate/unit_core_engine_cgi-prepare_path.t index 22081ff..76bad62 100644 --- a/t/aggregate/unit_core_engine_cgi-prepare_path.t +++ b/t/aggregate/unit_core_engine_cgi-prepare_path.t @@ -74,6 +74,21 @@ use Catalyst::Engine::CGI; is ''.$r->base, 'http://www.foo.com/'; } +# nginx example from espent with path /"foo" and the app based at /oslobilder +{ + my $r = get_req ( + PATH_INFO => 'oslobilder/"foo"', + SCRIPT_NAME => '/oslobilder/', + REQUEST_URI => '/oslobilder/%22foo%22', + ); + is ''.$r->path, '%22foo%22'; + is ''.$r->uri, 'http://www.foo.com/oslobilder/%22foo%22'; + is ''.$r->base, 'http://www.foo.com/oslobilder/'; +} + + + + # FIXME - Test proxy logic # - Test query string # - Test non standard port numbers