From: andre.schmid Date: Thu, 3 Dec 2020 15:45:04 +0000 (+0000) Subject: Fix operation with external artifact creation X-Git-Tag: 1.8.0~7 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=a9467feb90c33ad5b6b2ed80581c4adf75114046;p=sdc.git Fix operation with external artifact creation Change-Id: I728534bbc0e1c29800ae57300aa3c6a4710ac887 Issue-ID: SDC-3396 Signed-off-by: andre.schmid --- diff --git a/catalog-ui/src/app/ng2/services/component-services/component.service.ts b/catalog-ui/src/app/ng2/services/component-services/component.service.ts index 760bfc591b..3093e632fc 100644 --- a/catalog-ui/src/app/ng2/services/component-services/component.service.ts +++ b/catalog-ui/src/app/ng2/services/component-services/component.service.ts @@ -223,11 +223,11 @@ export class ComponentServiceNg2 { payloadData: oldOperation.artifactData }; - const headers = new HttpHeaders(); + JSON.stringify(payload); const payloadString = JSON.stringify(payload, null, ' '); const md5Result = md5(payloadString).toLowerCase(); - headers.append('Content-MD5', btoa(md5Result)); + const headers = new HttpHeaders().append('Content-MD5', btoa(md5Result)); return this.http.post(this.baseUrl + component.getTypeUrl() + component.uuid + '/interfaces/' + newOperation.interfaceId + '/operations/' + newOperation.uniqueId + '/artifacts/' + newOperation.implementation.artifactUUID, payload, {headers}