Skip to content

Commit

Permalink
allow "https" as valid $LJ::SSL_HEADER value
Browse files Browse the repository at this point in the history
  • Loading branch information
kareila committed Nov 29, 2016
1 parent a83bce9 commit 355c58b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cgi-bin/DW/Hooks/SSL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ LJ::Hooks::register_hook( 'ssl_check', sub {

# SSL_HEADER would be set by caching proxy
return 1 if $LJ::SSL_HEADER &&
$apache_r->headers_in->{$LJ::SSL_HEADER} == 1;
( $apache_r->headers_in->{$LJ::SSL_HEADER} == 1 ||
lc $apache_r->headers_in->{$LJ::SSL_HEADER} eq 'https' );
# fallback: true if using port defined in config
return 1 if $LJ::SSL_PORT &&
$apache_r->get_server_port == $LJ::SSL_PORT;
Expand Down

0 comments on commit 355c58b

Please sign in to comment.