From 92548c5a9f86f2015d6cdac3c202b51c0fede0a8 Mon Sep 17 00:00:00 2001 From: Jacob Laursen Date: Fri, 12 Apr 2024 21:42:51 +0200 Subject: [PATCH] Bypass WAF by using app user-agent (#16644) Resolves #16517 Signed-off-by: Jacob Laursen Signed-off-by: Ciprian Pascu --- .../openhab/binding/boschindego/internal/IndegoController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoController.java b/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoController.java index 5b0f126c23f..7f7c275f38a 100644 --- a/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoController.java +++ b/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoController.java @@ -39,7 +39,6 @@ import org.openhab.binding.boschindego.internal.exceptions.IndegoInvalidCommandE import org.openhab.binding.boschindego.internal.exceptions.IndegoInvalidResponseException; import org.openhab.binding.boschindego.internal.exceptions.IndegoTimeoutException; import org.openhab.core.library.types.RawType; -import org.osgi.framework.FrameworkUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -75,7 +74,7 @@ public class IndegoController { public IndegoController(HttpClient httpClient, AuthorizationProvider authorizationProvider) { this.httpClient = httpClient; this.authorizationProvider = authorizationProvider; - userAgent = "openHAB/" + FrameworkUtil.getBundle(this.getClass()).getVersion().toString(); + userAgent = "Indego-Connect_4.0.3.12955"; } /**