perkeep/pkg/client/android
mpl 8127040762 pkg/client: use Transport.DialTLS
We can now use DialTLS when we need a custom TLS setup, i.e. with
android, or when using self-signed certificates, or when totally
skipping certificates verification.

This allows us to get rid of the scheme rewriting hack, which simplifies
things, in particular because we have less tricky URL/host parsing to
do.

For the sake of tests and not affecting "real" code, I introduced the
fake_android build tag, so the tests can use custom functions to
simulate testing whether we're on android.

Fixes #566

Change-Id: I72ac2bb69ad2365e98dd6ca2e7016ce9c2d7c57e
2015-09-26 00:09:26 +02:00
..
androidx.go pkg/client: use Transport.DialTLS 2015-09-26 00:09:26 +02:00
androidx_fake.go pkg/client: use Transport.DialTLS 2015-09-26 00:09:26 +02:00
androidx_real.go pkg/client: use Transport.DialTLS 2015-09-26 00:09:26 +02:00