# File lib/travis/tools/github.rb, line 202 def api_host return GITHUB_API unless api_url api_url[%r{^(?:https?://)?([^/]+)}, 1] end