Skip to content

Commit

Permalink
Merge pull request #3042 from cwisniew/fix-3037
Browse files Browse the repository at this point in the history
  • Loading branch information
cwisniew authored Oct 14, 2021
2 parents 9eb6e9f + 66dd8d6 commit 742a7d4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ public void connect() {

@Override
public InputStream getInputStream() throws IOException {

String id = url.getHost();
if (url.getQuery() == null) {
if (url.getQuery() == null && id.indexOf('-') == -1) {
var asset = AssetManager.getAssetAndWait(new MD5Key(id));
var stream = new ByteArrayInputStream(asset.getImage());
return stream;
return new ByteArrayInputStream(asset.getImage());
}

BufferedImage img = ImageManager.getImageFromUrl(url);
Expand Down

0 comments on commit 742a7d4

Please sign in to comment.