Skip to content

Commit

Permalink
Change authorization header to X-API-Key
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz Ziemba committed Sep 3, 2021
1 parent 40f84bc commit 9706f31
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pdi/validate_file_sub.ktr
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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) {
Expand Down

0 comments on commit 9706f31

Please sign in to comment.