You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use Site.renderTo, HTML pages are rendered, but they contain junk bytes at the end of the file, after the closing </html>. This is because this line:
When I use
Site.renderTo
, HTML pages are rendered, but they contain junk bytes at the end of the file, after the closing</html>
. This is because this line:Scalatex/site/src/main/scala/scalatex/site/Site.scala
Line 132 in c50c910
returns a
ByteBuffer
whose internal capacity is greater than the actually written content. Therefore, writingbytes.array()
atScalatex/site/src/main/scala/scalatex/site/Site.scala
Line 134 in c50c910
also writes junk bytes of the internal array that were never written.
A solution is to slice the array before giving it to
write.over
:The text was updated successfully, but these errors were encountered: