Patch for JAL-4074 - any content ending in ‘gzip’ recognised as a gzipped stream...
authorJim Procter <j.procter@dundee.ac.uk>
Thu, 6 Oct 2022 11:19:13 +0000 (12:19 +0100)
committerJim Procter <j.procter@dundee.ac.uk>
Thu, 6 Oct 2022 11:19:13 +0000 (12:19 +0100)
src/jalview/io/FileParse.java

index 2dec559..d3a6ba9 100755 (executable)
@@ -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();