manage https scheme without relying only on wsgi info