diff --git a/lottie/src/main/java/com/airbnb/lottie/network/NetworkFetcher.java b/lottie/src/main/java/com/airbnb/lottie/network/NetworkFetcher.java index 180260ced3..c9ae2616cb 100644 --- a/lottie/src/main/java/com/airbnb/lottie/network/NetworkFetcher.java +++ b/lottie/src/main/java/com/airbnb/lottie/network/NetworkFetcher.java @@ -107,7 +107,10 @@ private LottieResult fromInputStream(@NonNull String url, @No // in the result which is more useful than failing here. contentType = "application/json"; } - if (contentType.contains("application/zip") || url.split("\\?")[0].endsWith(".lottie")) { + if (contentType.contains("application/zip") || + contentType.contains("application/x-zip") || + contentType.contains("application/x-zip-compressed") || + url.split("\\?")[0].endsWith(".lottie")) { Logger.debug("Handling zip response."); extension = FileExtension.ZIP; result = fromZipStream(url, inputStream, cacheKey);