perkeep/pkg/httputil
mpl 5445e983ae pkg/httputil: fix checkSystemRoots for Go1.6
Something changed in x509 in Go1.6 so that when verifying an empty Cert,
one now gets the errNotParsed (x509: missing ASN.1 contents; use
ParseCertificate) error, instead of the SystemRootsError.

Since we rely on getting the SystemRootsError to find out that we're on
CoreOS, we now need to verify a non empty cert, when performing this
check.

Fixes issue #705

Change-Id: I40a4f9aa4ef49bbdd3b7b15b127f890e26f31de4
2016-04-05 00:18:16 +02:00
..
auth.go pkg/httputil: allow local connections from root 2015-10-15 23:12:18 +02:00
auth_test.go
certs.go pkg/httputil: fix checkSystemRoots for Go1.6 2016-04-05 00:18:16 +02:00
certs_test.go Embed Mozilla's Root CA set for use in Docker environments without CA files. 2014-08-15 17:15:09 -07:00
faketransport.go pkg/types: remove 2016-02-05 18:28:47 +01:00
httputil.go add canonical import paths 2016-03-13 19:57:14 -07:00
transport.go pkg/httputil: also track protocol versions of HTTP response in StatsTransport 2015-12-29 13:36:50 -08:00