From a9467feb90c33ad5b6b2ed80581c4adf75114046 Mon Sep 17 00:00:00 2001 From: "andre.schmid" Date: Thu, 3 Dec 2020 15:45:04 +0000 Subject: Fix operation with external artifact creation Change-Id: I728534bbc0e1c29800ae57300aa3c6a4710ac887 Issue-ID: SDC-3396 Signed-off-by: andre.schmid --- .../src/app/ng2/services/component-services/component.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'catalog-ui') 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} -- cgit 1.2.3-korg