I want to add a header as below for the User-Agent and an existing header might stay:
custom-client , commercetools-java-sdks/1.6.0 Java/13.0.2+8 (Mac OS X; x86_64)
But I could not change the user-agent client, by default middleware overrides it. I think currently the only way is creating all middleware from scratch, or I am missing something?
I want to add a header as below for the
User-Agent
and an existing header might stay:custom-client , commercetools-java-sdks/1.6.0 Java/13.0.2+8 (Mac OS X; x86_64)
But I could not change the
user-agent
client, by default middleware overrides it. I think currently the only way is creating all middleware from scratch, or I am missing something?https://github.com/commercetools/commercetools-sdk-java-v2/blob/910581c3ae361c83135585969a0fbc75f4ab32cd/rmf/rmf-java-base/src/main/java/io/vrap/rmf/base/client/MiddlewareFactory.java#L23-L26