BUGFIX: in some proxy scenarios https was not propergated properly