diff options
author | Joey Hess <joey@kitenet.net> | 2010-11-29 16:31:25 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-11-29 16:31:25 -0400 |
commit | 3697a684df0f9bf931fafb3cd7766753b47c1970 (patch) | |
tree | af923fc6b0137a8cd814bfb87c56f7ecb9009901 /IkiWiki/CGI.pm | |
parent | a1e221f31d279cdeb5e2431a398bd843a142a83c (diff) | |
parent | f33c2af2c467c30ce009c8578988c8fcddf1f32c (diff) | |
download | ikiwiki-3697a684df0f9bf931fafb3cd7766753b47c1970.tar ikiwiki-3697a684df0f9bf931fafb3cd7766753b47c1970.tar.gz |
Merge remote branch 'smcv/ready/sslcookie-auto'
Diffstat (limited to 'IkiWiki/CGI.pm')
-rw-r--r-- | IkiWiki/CGI.pm | 2 |
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)); } |