Revert "Fix syntax"
This reverts commit cb72411379784002ad4de118efc56346a2db6be6.
This commit is contained in:
parent
14e265d872
commit
b87c39c90d
@ -4,8 +4,8 @@ use Mojolicious::Lite;
|
|||||||
|
|
||||||
get '/' => sub {
|
get '/' => sub {
|
||||||
my ($c) = @_;
|
my ($c) = @_;
|
||||||
my $hostHeader = $c->req->headers->host;
|
my $hostHeader = $c->req->headers->host();
|
||||||
my $scheme = $c->req->url->base->scheme;
|
my $scheme = $c->req->url->base->scheme();
|
||||||
|
|
||||||
if ($hostHeader =~ /www.wethepeople.win(|:[0-9]{1,5})/) {
|
if ($hostHeader =~ /www.wethepeople.win(|:[0-9]{1,5})/) {
|
||||||
$c->render()
|
$c->render()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user