Skip to content

Commit 67432fa

Browse files
authored
Add client name and version headers to requests (#10)
1 parent 6179ee2 commit 67432fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ export default async (req: Request, context: Context) => {
7070
context: {
7171
headers: {
7272
"Content-Type": "application/json",
73+
"apollographql-client-name": "custom-checks-example",
74+
"apollographql-client-version": "0.0.1",
7375
"x-api-key": apiKey
7476
}
7577
}
@@ -127,6 +129,8 @@ export default async (req: Request, context: Context) => {
127129
context: {
128130
headers: {
129131
"Content-Type": "application/json",
132+
"apollographql-client-name": "custom-checks-example",
133+
"apollographql-client-version": "0.0.1",
130134
"x-api-key": apiKey
131135
}
132136
}

0 commit comments

Comments
 (0)