Skip to content

Commit

Permalink
[gitpod] Add 'User-Agent' to API connection headers
Browse files Browse the repository at this point in the history
  • Loading branch information
geropl authored and jeanp413 committed Dec 6, 2021
1 parent 3039c5a commit 1271ac6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions/gitpod-shared/src/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ export async function createGitpodExtensionContext(context: vscode.ExtensionCont
super(address, protocols, {
headers: {
'Origin': new URL(gitpodHost).origin,
'Authorization': `Bearer ${serverToken}`
'Authorization': `Bearer ${serverToken}`,
'User-Agent': `${vscode.env.appName}/${vscode.version} ${context.extension.id}/${context.extension.packageJSON.version}`,
}
});
}
Expand Down

0 comments on commit 1271ac6

Please sign in to comment.