Skip to content

X-Avalara-Client header is overridden by ApiClient #25

@HeikoNitrobox

Description

@HeikoNitrobox

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions