projects
/
catagits/Test-WWW-Mechanize-Catalyst.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Test fixes - how did this ever pass before?
[catagits/Test-WWW-Mechanize-Catalyst.git]
/
t
/
lib
/
ExternalCatty
/
Controller
/
Root.pm
diff --git
a/t/lib/ExternalCatty/Controller/Root.pm
b/t/lib/ExternalCatty/Controller/Root.pm
index
882b81d
..
0409a7a
100644
(file)
--- a/
t/lib/ExternalCatty/Controller/Root.pm
+++ b/
t/lib/ExternalCatty/Controller/Root.pm
@@
-33,5
+33,14
@@
sub html {
];
}
+sub host : Global {
+ my ($self, $c) = @_;
+
+ my $host = $c->req->header('Host') || "<undef>";
+ my $html = html( $c->config->{name}, "Host: $host" );
+ $c->response->content_type("text/html");
+ $c->response->output($html);
+}
+
1;