use HEAD rather than master when retrieving files from repo

fixes #7
This commit is contained in:
Sam Reis 2018-02-12 14:33:17 +11:00
parent 9f384abdac
commit ab3f69fe6e

View file

@ -16,7 +16,7 @@ pub fn retrieve_file_at_path<S>(service: S, repo_path: &RepoPath, path: &Relativ
where S: Service<Request=Request, Response=Response, Error=HyperError>
{
let path_str: &str = path.as_ref();
let uri_future = format!("{}/{}/{}/master/{}",
let uri_future = format!("{}/{}/{}/HEAD/{}",
GITHUB_USER_CONTENT_BASE_URI,
repo_path.qual.as_ref(),
repo_path.name.as_ref(),