From 254080bc85a8f44d209158cc25af2f1f485c53cb Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 3 Jun 2011 14:36:31 -0400 Subject: Support the Hiawatha web server which sets HTTPS=off rather than not setting it. (There does not seem to be a standard here.) --- IkiWiki/CGI.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki/CGI.pm') diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index cb4f395a0..a372f7351 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -12,7 +12,7 @@ use Encode; sub printheader ($) { my $session=shift; - if ($ENV{HTTPS} || $config{sslcookie}) { + if (($ENV{HTTPS} && $ENV{HTTPS} ne "off") || $config{sslcookie}) { print $session->header(-charset => 'utf-8', -cookie => $session->cookie(-httponly => 1, -secure => 1)); } -- cgit v1.2.3