From 92b6a876f02b090001d4601ff3b4340e47a08539 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sat, 6 Sep 2008 14:48:05 +0200 Subject: [PATCH] Only redirect to https when we're in production --- lib/NDWeb/Controller/Root.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2