mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 09:38:38 +01:00
Error when invoking the open external command: Error in response: Unable to parse response as JSON. Fixes microsoft/vscode-remote-release#6412
This commit is contained in:
@@ -81,7 +81,7 @@ export class CLIServerBase {
|
||||
private onRequest(req: http.IncomingMessage, res: http.ServerResponse): void {
|
||||
const sendResponse = (statusCode: number, returnObj: any) => {
|
||||
res.writeHead(statusCode, { 'content-type': 'application/json' });
|
||||
res.end(JSON.stringify(returnObj), (err?: any) => err && this.logService.error(err));
|
||||
res.end(JSON.stringify(returnObj || null), (err?: any) => err && this.logService.error(err));
|
||||
};
|
||||
|
||||
const chunks: string[] = [];
|
||||
|
||||
Reference in New Issue
Block a user