From 1c494d3fd5fb746d5a5b6d582119cda261e1e7b5 Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 14 Sep 2023 03:18:52 +0200 Subject: Update submodules --- src/server/buffer.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/server/buffer.nim') diff --git a/src/server/buffer.nim b/src/server/buffer.nim index 053483b5..6303fd65 100644 --- a/src/server/buffer.nim +++ b/src/server/buffer.nim @@ -52,6 +52,7 @@ import xhr/formdata as formdata_impl import chakasu/charset import chakasu/decoderstream +import chakasu/encoderstream import chame/tags @@ -605,7 +606,8 @@ proc loadResource(buffer: Buffer, elem: HTMLLinkElement): EmptyPromise = # utf8 anyways let ss = newStringStream(s.get) #TODO non-utf-8 css - let source = newDecoderStream(ss, cs = CHARSET_UTF_8).readAll() + let ds = newDecoderStream(ss, cs = CHARSET_UTF_8) + let source = newEncoderStream(ds, cs = CHARSET_UTF_8).readAll() let ss2 = newStringStream(source) elem.sheet = parseStylesheet(ss2)) -- cgit 1.4.1-2-gfad0