diff --git a/core/src/main/scala/sttp/model/Header.scala b/core/src/main/scala/sttp/model/Header.scala index 62d0a6c0..21249f42 100644 --- a/core/src/main/scala/sttp/model/Header.scala +++ b/core/src/main/scala/sttp/model/Header.scala @@ -58,7 +58,7 @@ class Header(val name: String, val value: String) { /** For a description of the behavior of `apply`, `safeApply` and `unsafeApply` methods, see [[sttp.model]]. */ object Header { - def unapply(h: Header): Option[(String, String)] = Some((h.name, h.value)) + def unapply(h: Header): Some[(String, String)] = Some((h.name, h.value)) /** @throws IllegalArgumentException * If the header name contains illegal characters.