Skip to content

Commit 7db6405

Browse files
committed
Bypass WAF by using app user-agent (openhab#16644)
Resolves openhab#16517 Signed-off-by: Jacob Laursen <[email protected]>
1 parent 1bbee70 commit 7db6405

File tree

1 file changed

+1
-2
lines changed
  • bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal

1 file changed

+1
-2
lines changed

bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoController.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
import org.openhab.binding.boschindego.internal.exceptions.IndegoInvalidResponseException;
4040
import org.openhab.binding.boschindego.internal.exceptions.IndegoTimeoutException;
4141
import org.openhab.core.library.types.RawType;
42-
import org.osgi.framework.FrameworkUtil;
4342
import org.slf4j.Logger;
4443
import org.slf4j.LoggerFactory;
4544

@@ -75,7 +74,7 @@ public class IndegoController {
7574
public IndegoController(HttpClient httpClient, AuthorizationProvider authorizationProvider) {
7675
this.httpClient = httpClient;
7776
this.authorizationProvider = authorizationProvider;
78-
userAgent = "openHAB/" + FrameworkUtil.getBundle(this.getClass()).getVersion().toString();
77+
userAgent = "Indego-Connect_4.0.3.12955";
7978
}
8079

8180
/**

0 commit comments

Comments
 (0)