diff options
Diffstat (limited to 'src/local/pager.nim')
-rw-r--r-- | src/local/pager.nim | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim index f623bf06..b3602ad6 100644 --- a/src/local/pager.nim +++ b/src/local/pager.nim @@ -632,11 +632,8 @@ proc loadCachedImage(pager: Pager; container: Container; image: PosBitmap; cachedImage.data = blob cachedImage.state = cisLoaded cachedImage.cacheId = cacheId - if imageMode == imSixel and 4 < blob.size: - #TODO this should be a response header, but loader can't send us - # those yet... - let u = cast[ptr UncheckedArray[uint8]](blob.buffer)[4] - cachedImage.transparent = u == 1 + let trns = response.headers.getOrDefault("Cha-Image-Sixel-Transparent", "0") + cachedImage.transparent = trns == "1" ) ) container.cachedImages.add(cachedImage) |