Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit 14a6f2d

Browse files
author
Axel Rindle
committed
Explicitly require api v3 version in rest function
1 parent 3ac29c1 commit 14a6f2d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/check.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ const rest = (options, callback) => {
8989
const apiUrl = `https://api.github.com/repos/${options.owner}/${options.repo}/releases`;
9090
const opts = {
9191
headers: {
92+
'Accept': 'application/vnd.github.v3+json',
9293
'User-Agent': `${pkg.name} v${pkg.version}`
9394
}
9495
};

0 commit comments

Comments
 (0)