Fixed a bug with the scheme of the redirection.
During the processing of the HTTP headers, X-Forwarded-Proto is changed to X-forwarded-proto.
To solve this issue, the value is retreived with a case insensitive key.