Skip to content

Commit 2b4d4cc

Browse files
geropljeanp413
authored andcommitted
[gitpod] Add 'User-Agent' to API connection headers
1 parent 6a75ba1 commit 2b4d4cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extensions/gitpod-shared/src/features.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ export async function createGitpodExtensionContext(context: vscode.ExtensionCont
267267
super(address, protocols, {
268268
headers: {
269269
'Origin': new URL(gitpodHost).origin,
270-
'Authorization': `Bearer ${serverToken}`
270+
'Authorization': `Bearer ${serverToken}`,
271+
'User-Agent': `${vscode.env.appName}/${vscode.version} ${context.extension.id}/${context.extension.packageJSON.version}`,
271272
}
272273
});
273274
}

0 commit comments

Comments
 (0)