We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a395bf commit 4c1524fCopy full SHA for 4c1524f
src/content/github/common/fetchers.ts
@@ -6,7 +6,11 @@ import {
6
} from "src/types";
7
8
export async function getMetadata(url: string): Promise<FileMetadata> {
9
- const response = await fetch(url).then((response) => response.json());
+ const response = await fetch(url, {
10
+ headers: {
11
+ "Accept": "application/json",
12
+ },
13
+ }).then((response) => response.json());
14
let branch = undefined;
15
if (response.payload.refInfo.refType === "branch") {
16
branch = response.payload.refInfo.name;
0 commit comments