fix proxy for both http and https