Merge remote branch 'smcv/ready/sslcookie-auto'

master
Joey Hess 2010-11-29 16:31:25 -04:00
commit 3697a684df
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}