From e74487f675dba17c6be16b85869806ffea7fa867 Mon Sep 17 00:00:00 2001 From: Ronald Holshausen Date: Wed, 17 Jan 2024 13:52:06 +1100 Subject: [PATCH] fix: Add set-cookie header to the list of single value headers --- .../src/main/kotlin/au/com/dius/pact/core/model/HeaderParser.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/model/src/main/kotlin/au/com/dius/pact/core/model/HeaderParser.kt b/core/model/src/main/kotlin/au/com/dius/pact/core/model/HeaderParser.kt index c10d763d6..2dd6e165c 100644 --- a/core/model/src/main/kotlin/au/com/dius/pact/core/model/HeaderParser.kt +++ b/core/model/src/main/kotlin/au/com/dius/pact/core/model/HeaderParser.kt @@ -14,7 +14,7 @@ class HeaderWithParameters( object HeaderParser { private val SINGLE_VALUE_HEADERS = setOf("date", "accept-datetime", "if-modified-since", "if-unmodified-since", - "expires", "retry-after") + "expires", "retry-after", "last-modified", "set-cookie") fun fromJson(key: String, value: JsonValue): List { return when {