From d8ef59eb2f405123dba5ccfe711144a50b7b3a6c Mon Sep 17 00:00:00 2001 From: dcore94 Date: Thu, 23 Sep 2021 09:20:53 +0200 Subject: [PATCH] fixed Content-Type header typo --- templates/da_cache_to_shub.json.j2 | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/templates/da_cache_to_shub.json.j2 b/templates/da_cache_to_shub.json.j2 index c3b0615..0f440c8 100644 --- a/templates/da_cache_to_shub.json.j2 +++ b/templates/da_cache_to_shub.json.j2 @@ -175,23 +175,6 @@ "scriptExpression": "var k,report={requestid:$.input.requestId,orderNumber:$.input.orderNumber,errors:[]},keys=[],errors=[];for(var k in $.output) keys.push(k);keys.sort();for(k in keys){var index=keys[k].split('_')[1],o=$.output[keys[k]];o.endpoint1.error&&errors.push({url:$.input.downloads[index].url,number:index,error_number:1002,error_message:o.endpoint1.error}),o.endpoint2.error&&errors.push({url:$.input.descriptor.downloads[index].url,number:index,error_number:9999,error_message:o.endpoint2.error})};report['errors']=Java.to(errors,'java.util.Map[]');return {report:report}" } }, - { - "name" : "pyrest", - "taskReferenceName" : "test", - "type" : "SIMPLE", - "inputParameters" : { - "url" : "https://postb.in/1632380107095-8280576961115", - "method" : "POST", - "headers" : { - "Content-type": "application/json", - "Accept": "application/json" - }, - "body" : { - "username": "${workflow.input.callback.username}", - "password": "${workflow.input.callback.password}" - } - } - }, { "name" : "pyrest", "taskReferenceName" : "bc_data_api_authorize", @@ -200,7 +183,7 @@ "url" : "${workflow.input.callback.authorize_url}", "method" : "POST", "headers" : { - "Content-type": "application/json", + "Content-Type": "application/json", "Accept": "application/json" }, "body" : {