Skip to content

Commit

Permalink
Merge pull request #141 from RotherOSS/issue-138-reverse_proxy
Browse files Browse the repository at this point in the history
Issue #138: case insensitive check of $ENV{HTTPS}
  • Loading branch information
bschmalhofer authored Jul 6, 2020
2 parents 954057c + 10b9bf6 commit ce4c114
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Kernel/Modules/Installer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package Kernel::Modules::Installer;

use strict;
use warnings;
use feature qw(fc);

# core modules
use Net::Domain qw(hostfqdn);
Expand Down Expand Up @@ -1017,7 +1018,7 @@ sub Run {
Item => Translatable('Finished'),
Step => $StepCounter,
Host => $ENV{HTTP_HOST} || $ConfigObject->Get('FQDN'),
Scheme => ( ($ENV{HTTPS} && $ENV{HTTPS} eq 'ON') ? 'https' : 'http' ),
Scheme => ( ($ENV{HTTPS} && fc($ENV{HTTPS}) eq fc('ON') ) ? 'https' : 'http' ),
OTOBOHandle => $OTOBOHandle,
Webserver => $Webserver,
Password => $Password,
Expand Down

0 comments on commit ce4c114

Please sign in to comment.