aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/CGI.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-11-29 16:31:25 -0400
committerJoey Hess <joey@kitenet.net>2010-11-29 16:31:25 -0400
commit3697a684df0f9bf931fafb3cd7766753b47c1970 (patch)
treeaf923fc6b0137a8cd814bfb87c56f7ecb9009901 /IkiWiki/CGI.pm
parenta1e221f31d279cdeb5e2431a398bd843a142a83c (diff)
parentf33c2af2c467c30ce009c8578988c8fcddf1f32c (diff)
downloadikiwiki-3697a684df0f9bf931fafb3cd7766753b47c1970.tar
ikiwiki-3697a684df0f9bf931fafb3cd7766753b47c1970.tar.gz
Merge remote branch 'smcv/ready/sslcookie-auto'
Diffstat (limited to 'IkiWiki/CGI.pm')
-rw-r--r--IkiWiki/CGI.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm
index e0bfda9ae..ede194ff9 100644
--- a/IkiWiki/CGI.pm
+++ b/IkiWiki/CGI.pm
@@ -12,7 +12,7 @@ use Encode;
sub printheader ($) {
my $session=shift;
- if ($config{sslcookie}) {
+ if ($ENV{HTTPS} || $config{sslcookie}) {
print $session->header(-charset => 'utf-8',
-cookie => $session->cookie(-httponly => 1, -secure => 1));
}