And test the non root app case
Tomas Doran [Thu, 28 Jan 2010 18:15:10 +0000 (18:15 +0000)]
t/aggregate/unit_core_engine_cgi-prepare_path.t

index 22081ff..76bad62 100644 (file)
@@ -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