use x-original-scheme to handle https detection from proxy