From: Jim Procter Date: Thu, 6 Oct 2022 11:19:13 +0000 (+0100) Subject: Patch for JAL-4074 - any content ending in ‘gzip’ recognised as a gzipped stream... X-Git-Tag: Release_2_11_2_6~19 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b72726a61d5d7619debde302745c2008c572cfc1;p=jalview.git Patch for JAL-4074 - any content ending in ‘gzip’ recognised as a gzipped stream to decompress --- diff --git a/src/jalview/io/FileParse.java b/src/jalview/io/FileParse.java index 2dec559..d3a6ba9 100755 --- a/src/jalview/io/FileParse.java +++ b/src/jalview/io/FileParse.java @@ -343,7 +343,7 @@ public class FileParse } String encoding = _conn.getContentEncoding(); String contentType = _conn.getContentType(); - boolean isgzipped = "application/x-gzip".equalsIgnoreCase(contentType) + boolean isgzipped = "application/x-gzip".equalsIgnoreCase(contentType) || contentType.endsWith("gzip") || "gzip".equals(encoding); Exception e = null; InputStream inputStream = _conn.getInputStream();