From 9706f31039d9708e3908e4a903486c31e4f8a3bd Mon Sep 17 00:00:00 2001 From: Lukasz Ziemba Date: Fri, 3 Sep 2021 14:46:33 +0200 Subject: [PATCH] Change authorization header to X-API-Key --- pdi/validate_file_sub.ktr | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pdi/validate_file_sub.ktr b/pdi/validate_file_sub.ktr index 5b631e1..78b7b7e 100644 --- a/pdi/validate_file_sub.ktr +++ b/pdi/validate_file_sub.ktr @@ -1674,7 +1674,6 @@ import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpPost; import org.apache.http.client.methods.HttpGet; import org.apache.http.util.EntityUtils; -import org.apache.http.HttpHeaders; public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException { @@ -1700,7 +1699,7 @@ public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws K HttpPost httpPost = new HttpPost(validatorUrl + testPath); httpPost.setConfig(queue.config); if (authToken != null) - httpPost.setHeader(HttpHeaders.AUTHORIZATION, authToken); + httpPost.setHeader("X-API-Key", authToken); try { httpPost.setEntity(new StringEntity(testArgs, ContentType.APPLICATION_JSON)); } catch (Exception e) {