Request returns http instead of https

Slim recognizes the HTTP schema (http:// or https://) based on the value in $_SERVER['HTTPS'].

If the value is “off”, then the HTTP schema is http://.

How is your value in $_SERVER['HTTPS'] ?