Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/src/main/scala/sttp/model/Header.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down