Skip to content

Commit

Permalink
Add client name and version headers to requests (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
swcollard authored Sep 13, 2024
1 parent 6179ee2 commit 67432fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ export default async (req: Request, context: Context) => {
context: {
headers: {
"Content-Type": "application/json",
"apollographql-client-name": "custom-checks-example",
"apollographql-client-version": "0.0.1",
"x-api-key": apiKey
}
}
Expand Down Expand Up @@ -127,6 +129,8 @@ export default async (req: Request, context: Context) => {
context: {
headers: {
"Content-Type": "application/json",
"apollographql-client-name": "custom-checks-example",
"apollographql-client-version": "0.0.1",
"x-api-key": apiKey
}
}
Expand Down

0 comments on commit 67432fa

Please sign in to comment.