-secure => $cookie->{secure} || 0
);
- $c->lwp->response->header( 'Set-Cookie' => $cookie->as_string );
+ $c->lwp->response->headers->push_header( 'Set-Cookie' => $cookie->as_string );
}
}
$request = HTTP::Request->new( 'GET', $request );
}
+ my $host = sprintf( '%s:%d', $request->uri->host, $request->uri->port );
+ $request->header( 'Host' => $host );
+
my $lwp = Catalyst::Engine::Test::LWP->new(
address => '127.0.0.1',
hostname => 'localhost',