fixes a bug where https:true option doesn't work