diff options
Diffstat (limited to 'src/server/buffer.nim')
-rw-r--r-- | src/server/buffer.nim | 4 |
1 files changed, 3 insertions, 1 deletions
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)) |