Merge uri test fix from Apache engine, to support port numbers
Andy Grundman [Wed, 18 Oct 2006 03:43:32 +0000 (03:43 +0000)]
t/live_engine_request_uri.t

index 9b5833e..5027b9c 100644 (file)
@@ -88,7 +88,7 @@ my $creq;
 {\r
     ok( my $response = request('http://localhost/engine/request/uri/uri_with_object'), 'Request' );\r
     ok( $response->is_success, 'Response Successful 2xx' );\r
-    is( $response->header( 'X-Catalyst-Param-a' ), 'http://localhost/', 'param "a" ok' );\r
+    like( $response->header( 'X-Catalyst-Param-a' ), qr(http://localhost[^/]*/), 'param "a" ok' );\r
 }\r
 \r
 # test that uri_with is utf8 safe\r