Added support for non-HTTPs repositories.