mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
JSON schemas served with gzip fail to parse. Fixes #26672
This commit is contained in:
@@ -111,7 +111,8 @@ let schemaRequestService = (uri: string): Thenable<string> => {
|
||||
}
|
||||
});
|
||||
}
|
||||
return xhr({ url: uri, followRedirects: 5 }).then(response => {
|
||||
let headers = { 'Accept-Encoding': 'gzip, deflate' };
|
||||
return xhr({ url: uri, followRedirects: 5, headers }).then(response => {
|
||||
return response.responseText;
|
||||
}, (error: XHRResponse) => {
|
||||
return Promise.reject(error.responseText || getErrorStatusDescription(error.status) || error.toString());
|
||||
|
||||
Reference in New Issue
Block a user