Skip to content

Commit

Permalink
Merge pull request #1203 from devadiab/fix-imaeg-loading-with-binary-…
Browse files Browse the repository at this point in the history
…octect-stream-header

Enable loading images with binary/octet-stream content-type header
  • Loading branch information
kusma authored Jul 1, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 81fd747 + 24b197b commit 8fb40bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Experimental.TextureLoader/TextureLoader.uno
Original file line number Diff line number Diff line change
@@ -88,6 +88,8 @@ namespace Experimental.TextureLoader
PngByteArrayToTexture2D(arr, callback);
else if (contentType.IndexOf("application/octet-stream") != -1)
JpegByteArrayToTexture2D(arr, callback);
else if (contentType.IndexOf("binary/octet-stream") != -1)
JpegByteArrayToTexture2D(arr, callback);
else
throw new InvalidContentTypeException(contentType);
}

0 comments on commit 8fb40bb

Please sign in to comment.