diff --git a/client/implementation/src/main/java/io/smallrye/graphql/client/impl/TypesafeClientConfigurationReader.java b/client/implementation/src/main/java/io/smallrye/graphql/client/impl/TypesafeClientConfigurationReader.java index da889faed..89c886b28 100644 --- a/client/implementation/src/main/java/io/smallrye/graphql/client/impl/TypesafeClientConfigurationReader.java +++ b/client/implementation/src/main/java/io/smallrye/graphql/client/impl/TypesafeClientConfigurationReader.java @@ -2,6 +2,7 @@ import static io.smallrye.graphql.client.impl.GraphQLClientsConfiguration.getConfiguredHeaders; +import java.util.HashMap; import java.util.Optional; import org.eclipse.microprofile.config.Config; @@ -44,6 +45,7 @@ private void buildUrl() { private void buildHeaders() { clientConfiguration.setHeaders(getConfiguredHeaders(configKey, mpConfig)); + clientConfiguration.setDynamicHeaders(new HashMap<>()); } GraphQLClientConfiguration getClientConfiguration() {