remove leading / so that local dev would work

This commit is contained in:
Tyler Leonhardt 2022-03-23 16:03:17 -07:00
parent 8342a509d9
commit bee517564c
No known key found for this signature in database
GPG key ID: 1BC2B6244363E77E

View file

@ -323,7 +323,7 @@ export class GitHubServer implements IGitHubServer {
this._logger.info('Exchanging code for token...');
const proxyEndpoints: { [providerId: string]: string } | undefined = await vscode.commands.executeCommand('workbench.getCodeExchangeProxyEndpoints');
const endpointUrl = proxyEndpoints?.github ? `${proxyEndpoints.github}/login/oauth/access_token` : GITHUB_TOKEN_URL;
const endpointUrl = proxyEndpoints?.github ? `${proxyEndpoints.github}login/oauth/access_token` : GITHUB_TOKEN_URL;
try {
const body = `code=${code}`;