aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui
diff options
context:
space:
mode:
authorandre.schmid <andre.schmid@est.tech>2020-12-03 15:45:04 +0000
committerChristophe Closset <christophe.closset@intl.att.com>2020-12-07 09:09:32 +0000
commita9467feb90c33ad5b6b2ed80581c4adf75114046 (patch)
tree13681997c738dfa96a2143c547716157f615df90 /catalog-ui
parent5700275b3e147e0053ae7872271a9f2fbfa13e06 (diff)
Fix operation with external artifact creation
Change-Id: I728534bbc0e1c29800ae57300aa3c6a4710ac887 Issue-ID: SDC-3396 Signed-off-by: andre.schmid <andre.schmid@est.tech>
Diffstat (limited to 'catalog-ui')
-rw-r--r--catalog-ui/src/app/ng2/services/component-services/component.service.ts4
1 files changed, 2 insertions, 2 deletions
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}