Skip to content

Commit

Permalink
accept gzipped manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Jul 26, 2016
1 parent 160d6b8 commit c9a246a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit c9a246a

Please sign in to comment.