bug: set agent for http -> https proxy