X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Futilities%2Fedit-packages%2FEditPackagesComponent.ts;h=e38d3cf021228ed911ccff3fd5cc24355ebdc459;hb=abb6c4f09877efd34b4d84a1d153596937fd8975;hp=befafb8d8598c3b53808a488c8393da741380df1;hpb=4a7a542839c9ed7b6b6118c9faae0bc5d274494f;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(); } }