Skip to content

Commit

Permalink
Simple fix for new media uploads in Git Gateway.
Browse files Browse the repository at this point in the history
  • Loading branch information
tech4him1 authored Apr 3, 2018
1 parent f948f7a commit 59d475f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/backends/git-gateway/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ export default class API extends GithubAPI {
}
});
}

isPrivateRepo() {
/**
* There is currently no way to check whether a Git Gateway
* repo is public or private, so we have to assume it is private
* so that all requests are authenticated.
* (see github/implementation.js#persistMedia())
*/
return true;
}

getRequestHeaders(headers = {}) {
return this.tokenPromise()
Expand Down

0 comments on commit 59d475f

Please sign in to comment.