Skip to content

Commit 6b0a381

Browse files
committed
feat: Add interface for SDK-specific HTTP headers
1 parent 312dd27 commit 6b0a381

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/src/main/java/com/ibm/watson/common/SdkCommon.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static Map<String, String> getDefaultHeaders(String serviceName, String s
4545
operationId
4646
);
4747

48-
headers.put(HttpHeaders.X_IBMCLOUD_SDK_ANALYTICS, sdkAnalyticsHeaderValue);
48+
headers.put(WatsonHttpHeaders.X_IBMCLOUD_SDK_ANALYTICS, sdkAnalyticsHeaderValue);
4949
headers.put(HttpHeaders.USER_AGENT, getUserAgent());
5050
return headers;
5151
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.ibm.watson.common;
22

3-
public interface HttpHeaders {
3+
public interface WatsonHttpHeaders {
44
/** Header containing analytics info. */
55
String X_IBMCLOUD_SDK_ANALYTICS = "X-IBMCloud-SDK-Analytics";
66
}

0 commit comments

Comments
 (0)