Fix problem whith requests wihtout key $_SERVER[REQUEST_SCHEME]