about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-01-08 18:53:01 +0100
committerbptato <nincsnevem662@gmail.com>2025-01-08 21:05:46 +0100
commit9f148acf70c16a669ad9bf5bbc17d5ed8fd6abe2 (patch)
tree453da5007c0238400de10c005e57244de0b58606 /src
parent186193ab7b514bbde11925f940a8d88786508f74 (diff)
downloadchawan-9f148acf70c16a669ad9bf5bbc17d5ed8fd6abe2.tar.gz
dom: fix content type detection for user-provided codecs
contentType is the network type; t may be different depending on the
extension.
Diffstat (limited to 'src')
-rw-r--r--src/html/dom.nim2
1 files changed, 1 insertions, 1 deletions
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