Fix proxying over different protocol (https).