];
}
+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;
is($m->uri, "$ENV{CATALYST_SERVER}/");
$m->get_ok( '/host' );
- $m->content_contains('Host: localhost:$PORT') or diag $m->content;
+ $m->content_contains("Host: localhost:$PORT") or diag $m->content;
}