From: Michael Andreen Date: Sat, 6 Sep 2008 12:48:05 +0000 (+0200) Subject: Only redirect to https when we're in production X-Git-Url: https://ruin.nu/git/?p=ndwebbie.git;a=commitdiff_plain;h=92b6a876f02b090001d4601ff3b4340e47a08539 Only redirect to https when we're in production --- diff --git a/lib/NDWeb/Controller/Root.pm b/lib/NDWeb/Controller/Root.pm index 7d5bf1c..682448c 100644 --- a/lib/NDWeb/Controller/Root.pm +++ b/lib/NDWeb/Controller/Root.pm @@ -61,7 +61,7 @@ sub login : Local { ,$country,$c->sessionid,$remember); my $ref = $c->req->referer; - $ref =~ s/^http:/https:/; + $ref =~ s/^http:/https:/ unless $c->debug; $c->res->redirect($ref); return; }