Skip to content

Commit 8390cac

Browse files
authored
[server] Fix file provider accept header (#16881)
1 parent 58b3d60 commit 8390cac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/server/src/github/file-provider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class GithubFileProvider implements FileProvider {
6060
path,
6161
ref: commit.revision,
6262
headers: {
63-
accept: "application/vnd.github.VERSION.raw",
63+
accept: "application/vnd.github.raw",
6464
},
6565
};
6666

@@ -70,7 +70,7 @@ export class GithubFileProvider implements FileProvider {
7070
if (typeof response.data === "string") {
7171
return response.data;
7272
}
73-
log.warn("GithubFileProvider.getFileContent – unexpected response type.", {
73+
log.warn("GithubFileProvider.getFileContent – unexpected response type.", {
7474
request: params,
7575
response: {
7676
headers: {

0 commit comments

Comments
 (0)