Skip to content

Commit

Permalink
Specify custom media type to retrieve larger files
Browse files Browse the repository at this point in the history
Closes Bhacaz#3
  • Loading branch information
JamesMGreene authored Jun 1, 2022
1 parent 73e17cf commit d7c4aee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const repo = repository.split('/')[1]

function getContent(path) {
octokit.repos.getContent({
mediaType: {
format: "raw",
},
owner,
repo,
path,
Expand Down

0 comments on commit d7c4aee

Please sign in to comment.