From: Harshini Rajagopal Date: Tue, 11 Jan 2022 05:36:24 +0000 (+0530) Subject: Bug while editing a VNF/NS descriptor X-Git-Tag: v12.0.0rc1~17 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNG-UI.git;a=commitdiff_plain;h=abb6c4f09877efd34b4d84a1d153596937fd8975 Bug while editing a VNF/NS descriptor *Changed the content type to gzip in headers to support .gz files while editing VNF and NS descriptors. Change-Id: I5126731d561fd2c9ca651e02c59a47a0daf6c472 Signed-off-by: Harshini Rajagopal --- 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(); } }