We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e6ca39f + f38e0ae commit 869b16cCopy full SHA for 869b16c
core/src/main/scala/sttp/model/MediaType.scala
@@ -63,7 +63,7 @@ case class MediaType(
63
64
def isModel: Boolean = mainType.equalsIgnoreCase("model")
65
66
- override def toString: String = {
+ override lazy val toString: String = {
67
val sb = new java.lang.StringBuilder(32) // "application/json; charset=utf-8".length == 31 ;)
68
sb.append(mainType).append('/').append(subType)
69
charset match {
0 commit comments