added cgi.pl helper script
[catagits/Catalyst-Runtime.git] / t / 07headers.t
CommitLineData
fc7ec1d9 1package TestApp;
2
3use Catalyst;
4
5__PACKAGE__->action(
6 foo => sub {
7 my ( $self, $c ) = @_;
8 $c->res->headers->header( 'X-Foo' => 'Bar' );
9 }
10);
11
12package main;
13
14use Test::More tests => 1;
15use Catalyst::Test 'TestApp';
16
17ok( request('/foo')->header('X-Foo') );