Skip to content

Commit 4872510

Browse files
author
“deep-splunk”
committed
removal of header declaration
1 parent ce919d2 commit 4872510

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/splunk/kafka/connect/SplunkSinkConnector.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,7 @@ private void validateSplunkConfigurations(final Map<String, String> configs) thr
158158
}
159159

160160
private void preparePayloadAndExecuteRequest(SplunkSinkConnectorConfig connectorConfig, String index) throws ConfigException {
161-
Header[] headers;
162-
headers = new Header[]{new BasicHeader("Authorization", String.format("Splunk %s", connectorConfig.splunkToken))};
161+
Header[] headers = new Header[]{new BasicHeader("Authorization", String.format("Splunk %s", connectorConfig.splunkToken))};
163162
String endpoint = "/services/collector";
164163
String url = connectorConfig.splunkURI + endpoint;
165164
final HttpPost httpPost = new HttpPost(url);

0 commit comments

Comments
 (0)