X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Futilities%2Fedit-packages%2FEditPackagesComponent.ts;h=e38d3cf021228ed911ccff3fd5cc24355ebdc459;hb=refs%2Fchanges%2F07%2F11507%2F1;hp=befafb8d8598c3b53808a488c8393da741380df1;hpb=3b4814aa2d3dec621dadb52f058ba95a3dc3a86a;p=osm%2FNG-UI.git diff --git a/src/app/utilities/edit-packages/EditPackagesComponent.ts b/src/app/utilities/edit-packages/EditPackagesComponent.ts index befafb8..e38d3cf 100644 --- a/src/app/utilities/edit-packages/EditPackagesComponent.ts +++ b/src/app/utilities/edit-packages/EditPackagesComponent.ts @@ -187,7 +187,7 @@ export class EditPackagesComponent implements OnInit { this.updateFileContentType = 'package_content'; this.navigatePath = 'vnf'; this.fileTypes = [{ value: 'text/x-yaml', viewValue: 'yaml' }, { value: 'text/json', viewValue: 'json' }]; - this.httpOptions = this.getHeadersWithContentAccept('application/zip', 'application/json'); + this.httpOptions = this.getHeadersWithContentAccept('application/gzip', 'application/json'); this.getEditFileData(); } else if (this.pacakgeType === 'netslice') { this.getUpdateURL = environment.NETWORKSLICETEMPLATE_URL; @@ -204,7 +204,7 @@ export class EditPackagesComponent implements OnInit { this.pacakgeType = 'nsd'; this.navigatePath = 'ns'; this.fileTypes = [{ value: 'text/x-yaml', viewValue: 'yaml' }, { value: 'text/json', viewValue: 'json' }]; - this.httpOptions = this.getHeadersWithContentAccept('application/zip', 'application/json'); + this.httpOptions = this.getHeadersWithContentAccept('application/gzip', 'application/json'); this.getEditFileData(); } }