Skip to content

Commit

Permalink
core: avoid loop in JavaQuery.render(HttpCharset, CharPredicate) (#4078)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudolph authored Mar 23, 2022
1 parent d2e3361 commit fa1831a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ final private[http] case class JavaQuery(query: sm.Uri.Query) extends jm.Query {
override def withParam(key: String, value: String): jm.Query = jm.Query.create(query.map(_.asJava) :+ Pair(key, value): _*)
override def render(charset: HttpCharset): String =
UriRendering.renderQuery(new StringRendering, query, charset.nioCharset, CharacterClasses.unreserved).get
override def render(charset: HttpCharset, keep: CharPredicate): String = render(charset, keep)
override def render(charset: HttpCharset, keep: CharPredicate): String =
UriRendering.renderQuery(new StringRendering, query, charset.nioCharset, keep).get
}

0 comments on commit fa1831a

Please sign in to comment.