From d92c0511b651de89db6f3d5cc6fbb1471fd69fe1 Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Sat, 30 Sep 2017 20:39:25 +0100 Subject: [PATCH] fix(api): Run getRepositoryFile() through API, not raw.githubcontents --- src/repository/screens/repository-file.screen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repository/screens/repository-file.screen.js b/src/repository/screens/repository-file.screen.js index 67a70d47a..116fb9b3e 100644 --- a/src/repository/screens/repository-file.screen.js +++ b/src/repository/screens/repository-file.screen.js @@ -101,7 +101,7 @@ class RepositoryFile extends Component { const fileType = content.name.split('.').pop(); if (!this.isImage(fileType)) { - this.props.getRepositoryFile(content.download_url); + this.props.getRepositoryFile(content.url); } else { this.setImageSize(content.download_url); }