Fix HTTPS support on Go 1.1.