Ant build failing behind build.snapcraft.io server proxies

May not be related, but I’m still having problems if the URL gets redirected from an SSL mirror to a non-ssl mirror.
The proxy will fail in this use case.