mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Bypass WAF by using app user-agent (#16644)
Resolves #16517 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
0fca945b41
commit
465e84d800
@ -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";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user