use HTTP::Headers::Util 'split_header_words';
-
-my $expected = {
- Catalyst => [ qw( Catalyst Cool path / ) ],
- Cool => [ qw( Cool Catalyst path / ) ]
+my $expected = {
+ Catalyst => [qw( Catalyst Cool path / )],
+ Cool => [qw( Cool Catalyst path / )]
};
{
- ok( my $response = request('http://localhost/engine/response/cookies/one'), 'Request' );
+ ok( my $response = request('http://localhost/engine/response/cookies/one'),
+ 'Request' );
ok( $response->is_success, 'Response Successful 2xx' );
is( $response->content_type, 'text/plain', 'Response Content-Type' );
- is( $response->header('X-Catalyst-Action'), 'engine/response/cookies/one', 'Test Action' );
+ is( $response->header('X-Catalyst-Action'),
+ 'engine/response/cookies/one', 'Test Action' );
my $cookies = {};
}
{
- ok( my $response = request('http://localhost/engine/response/cookies/two'), 'Request' );
+ ok( my $response = request('http://localhost/engine/response/cookies/two'),
+ 'Request' );
ok( $response->is_redirect, 'Response Redirection 3xx' );
is( $response->code, 302, 'Response Code' );
- is( $response->header('X-Catalyst-Action'), 'engine/response/cookies/two', 'Test Action' );
+ is( $response->header('X-Catalyst-Action'),
+ 'engine/response/cookies/two', 'Test Action' );
my $cookies = {};