mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
🐛 fix electron-main request service to use proper protocol
This commit is contained in:
@@ -64,6 +64,7 @@ export function request(options: IRequestOptions): TPromise<IRequestContext> {
|
||||
const opts: https.RequestOptions = {
|
||||
hostname: endpoint.hostname,
|
||||
port: endpoint.port ? parseInt(endpoint.port) : (endpoint.protocol === 'https:' ? 443 : 80),
|
||||
protocol: endpoint.protocol,
|
||||
path: endpoint.path,
|
||||
method: options.type || 'GET',
|
||||
headers: options.headers,
|
||||
|
||||
Reference in New Issue
Block a user