change scheme to https when the header, x-forwarded-proto, is https.

I just added two lines to enable https on scheme when the request is https.