aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorten Tokle <morten.tokle@gmail.com>2018-02-02 10:57:31 +0100
committerGitHub <noreply@github.com>2018-02-02 10:57:31 +0100
commit711bf1a14c15796e7be2fa96f30d0ad816465288 (patch)
tree9843a975a836fa30a76d46a5da56d69e0cf80c70
parent522e5888868444414fdd527a54769c8dcb30899d (diff)
parent691c43854d16c8850fcac8bd5ecc5dd6773d327e (diff)
Merge pull request #4890 from vespa-engine/bjorncs/user-agent
Set user-agent in vespa-http-client
-rw-r--r--vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java
index dd724e90a42..6c1d068236d 100644
--- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java
+++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/core/communication/ApacheGatewayConnection.java
@@ -399,6 +399,7 @@ class ApacheGatewayConnection implements GatewayConnection {
clientBuilder.setConnectionManager(connMgr);
}
+ clientBuilder.setUserAgent("vespa-http-client");
clientBuilder.setMaxConnPerRoute(1);
clientBuilder.setMaxConnTotal(1);
clientBuilder.disableContentCompression();