diff options
Diffstat (limited to 'src/local/container.nim')
-rw-r--r-- | src/local/container.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/local/container.nim b/src/local/container.nim index 8a0ae37e..8874c2d0 100644 --- a/src/local/container.nim +++ b/src/local/container.nim @@ -120,6 +120,7 @@ type tmpJumpMark: PagePos jumpMark: PagePos marks: Table[string, PagePos] + ishtml*: bool jsDestructor(Highlight) jsDestructor(Container) @@ -1200,6 +1201,7 @@ proc load(container: Container) = "application/octet-stream", container.config.mimeTypes) if contentType != "application/octet-stream": container.iface.setContentType(contentType) + container.ishtml = contentType == "text/html" container.source.contentType = some(contentType) else: container.source.contentType = some(res.contentType) @@ -1225,6 +1227,7 @@ proc redirectToFd*(container: Container, fdin: FileHandle, wait: bool): proc readFromFd*(container: Container, fdout: FileHandle, ishtml: bool): EmptyPromise = + container.ishtml = ishtml return container.iface.readFromFd(fdout, ishtml) proc quit*(container: Container) = |