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