Skip to content

Commit

Permalink
Merge next branch into main
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jan 23, 2025
2 parents cefdb59 + 30030c5 commit ed64620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/xylophone.Xml.scala
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ object Xml:
given Xml is Showable = xml =>
safely(xmlPrinters.compact.print(XmlDoc(XmlAst.Root(Xml.normalize(xml)*)))).or(t"undefined")

given (using enc: Encoding, printer: XmlPrinter[Text]) => Xml is GenericHttpResponseStream:
given (enc: Encoding, printer: XmlPrinter[Text]) => Xml is GenericHttpResponseStream:
def mediaType: Text = t"application/xml; charset=${enc.name}"
def content(xml: Xml): LazyList[IArray[Byte]] =
LazyList(summon[XmlPrinter[Text]].print(xml).bytes(using charEncoders.utf8))
Expand Down

0 comments on commit ed64620

Please sign in to comment.