Fix for https cases for Apache on IBM i

On Apache on IBM i the `$_SERVER['HTTPS']` is set to `OFF` instead of `off` (lowercase).
I've added the strtolower to prevent cases like that.