]> git.basschouten.com Git - openhab-addons.git/commitdiff
[openhabcloud] Removing content encoding when proxing. (#13559)
authorDan Cunningham <dan@digitaldan.com>
Mon, 17 Oct 2022 06:06:08 +0000 (23:06 -0700)
committerGitHub <noreply@github.com>
Mon, 17 Oct 2022 06:06:08 +0000 (08:06 +0200)
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/CloudService.java

index 64d93bfad4a570bfed37c60589f8c8657108697a..8a74527b5da05caabf5d2265adfbd44c6a26c09e 100644 (file)
@@ -237,6 +237,8 @@ public class CloudService implements ActionService, CloudClientListener, EventSu
         if (!httpClient.isRunning()) {
             try {
                 httpClient.start();
+                // we act as a blind proxy, don't try to auto decode content
+                httpClient.getContentDecoderFactories().clear();
             } catch (Exception e) {
                 logger.error("Could not start Jetty http client", e);
             }