There may not be any immediate solution to this since we only store the raw host (e.g., github.com) as credential. It prob. make sense though to store the full host (e.g., https://api.github.com). This'll make it consistent with GHE. Does GHE always use http as the URL?