diff --git a/www-swagg.pl b/www-swagg.pl index 0399166..86f8a2a 100755 --- a/www-swagg.pl +++ b/www-swagg.pl @@ -34,7 +34,7 @@ under sub { $c->res->headers->header('Permissions-Policy', 'interest-cohort=()'); # Work around for swagg.net downtime 05/28/2022 - unless ($hostHeader =~ /^www\./ || app->mode() eq 'development') { + unless (app->mode() eq 'development' || $hostHeader =~ /^www\./) { $c->redirect_to('https://www.swagg.net') }