From 9f148acf70c16a669ad9bf5bbc17d5ed8fd6abe2 Mon Sep 17 00:00:00 2001 From: bptato Date: Wed, 8 Jan 2025 18:53:01 +0100 Subject: dom: fix content type detection for user-provided codecs contentType is the network type; t may be different depending on the extension. --- src/html/dom.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/html/dom.nim b/src/html/dom.nim index e326f904..fe4d7a32 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -3933,7 +3933,7 @@ proc loadResource*(window: Window; image: HTMLImageElement) = height: height, cacheId: cacheId, imageId: window.getImageId(), - contentType: contentType + contentType: "image/" & t ) image.bitmap = bmp cachedURL.bmp = bmp -- cgit