From 0b20d48fd942339cbe96d5ec4cf0c9a094c2d412 Mon Sep 17 00:00:00 2001 From: Dmitry Polienko Date: Fri, 18 Feb 2022 12:09:49 +0700 Subject: [PATCH] Change Header.unapply to return Some --- core/src/main/scala/sttp/model/Header.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.