diff --git a/modules/helma/Http.js b/modules/helma/Http.js index 3cc19ae0..a379d54c 100644 --- a/modules/helma/Http.js +++ b/modules/helma/Http.js @@ -62,7 +62,11 @@ helma.Http = function() { var input; try { if (method !== 'DELETE') { - input = new java.io.BufferedInputStream(connection.getInputStream()); + var stream = connection.getInputStream(); + if (connection.getContentEncoding() === 'gzip') { + stream = new java.util.zip.GZIPInputStream(stream); + } + input = new java.io.BufferedInputStream(stream); } } catch (error) { input = new java.io.BufferedInputStream(connection.getErrorStream());