Skip to content

Commit

Permalink
Prevent null dynamicHeaders
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartisk committed Oct 17, 2023
1 parent 6f8b083 commit 2640bc9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -44,6 +45,7 @@ private void buildUrl() {

private void buildHeaders() {
clientConfiguration.setHeaders(getConfiguredHeaders(configKey, mpConfig));
clientConfiguration.setDynamicHeaders(new HashMap<>());
}

GraphQLClientConfiguration getClientConfiguration() {
Expand Down

0 comments on commit 2640bc9

Please sign in to comment.