diff options
author | bptato <nincsnevem662@gmail.com> | 2025-01-08 18:53:01 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2025-01-08 21:05:46 +0100 |
commit | 9f148acf70c16a669ad9bf5bbc17d5ed8fd6abe2 (patch) | |
tree | 453da5007c0238400de10c005e57244de0b58606 /src | |
parent | 186193ab7b514bbde11925f940a8d88786508f74 (diff) | |
download | chawan-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.nim | 2 |
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 |