Fixed https_middleware that was setting url_scheme to https always.