From: Joey Hess Date: Fri, 3 Jun 2011 18:36:31 +0000 (-0400) Subject: Support the Hiawatha web server which sets HTTPS=off rather than not setting it.... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=254080bc85a8f44d209158cc25af2f1f485c53cb;p=ikiwiki.git Support the Hiawatha web server which sets HTTPS=off rather than not setting it. (There does not seem to be a standard here.) --- 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)); } diff --git a/debian/changelog b/debian/changelog index feb4cff81..5985a7fed 100644 --- a/debian/changelog +++ b/debian/changelog @@ -14,6 +14,8 @@ ikiwiki (3.20110431) UNRELEASED; urgency=low * po: support language codes in the form of 'es_AR', and 'arn'. (intrigeri) Closes: #627844 * po: Make po4a warn, not error on a malformed document. (intrigeri) + * Support the Hiawatha web server which sets HTTPS=off rather than not + setting it. (There does not seem to be a standard here.) -- Joey Hess Thu, 05 May 2011 13:02:19 -0400