2 # Use this hook to turn on SSL mode if a certain header is present. See the
3 # SSL documentation for more information on usage.
6 # Mark Smith <mark@dreamwidth.org>
8 # Copyright (c) 2009 by Dreamwidth Studios, LLC.
10 # This program is free software; you may redistribute it and/or modify it under
11 # the same terms as Perl itself. For a copy of the license, please reference
12 # 'perldoc perlartistic' or 'perldoc perlgpl'.
15 package DW::Hooks::SSL;
20 LJ::Hooks::register_hook( 'ssl_check', sub {
24 return 1 if $LJ::SSL_HEADER &&
25 $r->headers_in->{$LJ::SSL_HEADER} == 1;