-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Hi there,
During the Avalara certification process, we noticed that the X-Avalara-Client header is consistently being overridden by the ApiClient, which unfortunately prevented us from completing the certification successfully.
Would you mind taking a look and helping us resolve this issue?
Thanks in advance!
Here is the relevant code section.
Current code:
String clientId = this.configuration.getAppName() + "; " + this.configuration.getAppVersion()
+ "; JavaRestClient; " + this.sdkVersion + "; "
+ this.configuration.getMachineName();
headerParams.put(AVALARA_CLIENT_HEADER, clientId);
Proposed code:
if (headerParams.get(AVALARA_CLIENT_HEADER) == null) {
String clientId = this.configuration.getAppName() + "; " + this.configuration.getAppVersion()
+ "; JavaRestClient; " + this.sdkVersion + "; "
+ this.configuration.getMachineName();
headerParams.put(AVALARA_CLIENT_HEADER, clientId);
}
Cheers Heiko