[openhabcloud] Removing content encoding when proxing. (#13559)

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
This commit is contained in:
Dan Cunningham 2022-10-16 23:06:08 -07:00 committed by GitHub
parent a02e345f96
commit 03cdc5e1b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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);
}