aboutsummaryrefslogtreecommitdiffstats
path: root/orchestrator/src
diff options
context:
space:
mode:
Diffstat (limited to 'orchestrator/src')
-rw-r--r--orchestrator/src/main/java/com/yahoo/vespa/orchestrator/controller/RetryingClusterControllerClientFactory.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/controller/RetryingClusterControllerClientFactory.java b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/controller/RetryingClusterControllerClientFactory.java
index c34aeed132c..577a030d658 100644
--- a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/controller/RetryingClusterControllerClientFactory.java
+++ b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/controller/RetryingClusterControllerClientFactory.java
@@ -7,6 +7,7 @@ import ai.vespa.util.http.hc5.VespaHttpClientBuilder;
import com.google.inject.Inject;
import com.yahoo.component.AbstractComponent;
import com.yahoo.vespa.applicationmodel.HostName;
+import org.apache.hc.core5.http.message.BasicHeader;
import java.io.IOException;
import java.util.List;
@@ -26,6 +27,7 @@ public class RetryingClusterControllerClientFactory extends AbstractComponent im
public RetryingClusterControllerClientFactory() {
this(AbstractHttpClient.wrapping(VespaHttpClientBuilder.create()
.setUserAgent("orchestrator-cluster-controller-client")
+ .setDefaultHeaders(List.of(new BasicHeader("Accept", "application/json")))
.build()));
}