Skip to content

Commit

Permalink
fix(android): assume application/javascript is not binary
Browse files Browse the repository at this point in the history
Fixes TIMOB-27823
  • Loading branch information
sgtcoolguy committed Mar 30, 2020
1 parent a7dc68b commit efa3c64
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ public static boolean isBinaryMimeType(String mimeType)
mimeType = parts[0];

if (mimeType.startsWith("application/")) {
if (!mimeType.endsWith("xml") && !mimeType.endsWith("json")) {
if (!mimeType.equals("application/javascript") && !mimeType.endsWith("xml")
&& !mimeType.endsWith("json")) {
isBinary = true;
}
} else if (mimeType.startsWith("image/")) {
Expand Down

0 comments on commit efa3c64

Please sign in to comment.