Return to ltiauth.pm CVS log | Up to [LON-CAPA] / loncom / lti |
version 1.30, 2022/02/01 23:13:20 | version 1.31, 2022/02/02 00:31:16 |
---|---|
Line 759 sub handler { | Line 759 sub handler { |
sub get_lti_itemid { | sub get_lti_itemid { |
my ($requri,$hostname,$params,$cdom,$cnum,$context) = @_; | my ($requri,$hostname,$params,$cdom,$cnum,$context) = @_; |
return unless ((ref($params) eq 'HASH'); | return unless (ref($params) eq 'HASH'); |
my $protocol = 'http'; | my $protocol = 'http'; |
if ($ENV{'SERVER_PORT'} == 443) { | if ($ENV{'SERVER_PORT'} == 443) { |
$protocol = 'https'; | $protocol = 'https'; |