only use the https agent if the url is https
extend options rather than overwriting them