提交 c9a246ad 编写于 作者: J Joao Moreno

accept gzipped manifests

上级 160d6b85
......@@ -160,8 +160,11 @@ export class ExtensionManagementService implements IExtensionManagementService {
return TPromise.wrapError(new Error(nls.localize('noCompatible', "Couldn't find a compatible version of {0} with this version of Code.", extension.displayName || extension.name)));
}
const headers = { 'accept-encoding': 'gzip' };
const version = versions[0];
return this.request(version.manifestUrl)
.then(opts => assign(opts, { headers }))
.then(opts => json<IExtensionManifest>(opts))
.then(manifest => {
const desc = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册