]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/CGI.pm
Support the Hiawatha web server which sets HTTPS=off rather than not setting it....
[ikiwiki.git] / IkiWiki / CGI.pm
index cb4f395a063076a64e0c33e95d220f2f8581602f..a372f73514b52363f3a7c9a2c6ad6e36908267fb 100644 (file)
@@ -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));
        }