Skip to content

Commit 4a0ed0c

Browse files
authored
Merge pull request #35 from copilot-extensions/yuzuki-s/add-x-to-header
Add x to headers
2 parents bd4746c + 1bc666b commit 4a0ed0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const server = createServer(async (request, response) => {
2222
let verifyAndParseRequestResult: Awaited<ReturnType<typeof verifyAndParseRequest>>;
2323
const apiKey = request.headers["x-github-token"] as string;
2424
try {
25-
const signature = request.headers["github-public-key-signature"] as string;
26-
const keyID = request.headers["github-public-key-identifier"] as string;
25+
const signature = request.headers["x-github-public-key-signature"] as string;
26+
const keyID = request.headers["x-github-public-key-identifier"] as string;
2727
verifyAndParseRequestResult = await verifyAndParseRequest(body, signature, keyID, {
2828
token: apiKey,
2929
});

0 commit comments

Comments
 (0)