diff --git a/bundles/org.openhab.core.io.net/src/main/java/org/openhab/core/io/net/http/HttpUtil.java b/bundles/org.openhab.core.io.net/src/main/java/org/openhab/core/io/net/http/HttpUtil.java index 37c980752..9cfe66ca3 100644 --- a/bundles/org.openhab.core.io.net/src/main/java/org/openhab/core/io/net/http/HttpUtil.java +++ b/bundles/org.openhab.core.io.net/src/main/java/org/openhab/core/io/net/http/HttpUtil.java @@ -213,7 +213,11 @@ public class HttpUtil { if (httpHeaders != null) { for (String httpHeaderKey : httpHeaders.stringPropertyNames()) { - request.header(httpHeaderKey, httpHeaders.getProperty(httpHeaderKey)); + if (httpHeaderKey.equalsIgnoreCase(HttpHeader.USER_AGENT.toString())) { + request.agent(httpHeaders.getProperty(httpHeaderKey)); + } else { + request.header(httpHeaderKey, httpHeaders.getProperty(httpHeaderKey)); + } } }