fix https to work via proxy