From f630f6bd7736addeb9c00b1bb8e9c110e2322665 Mon Sep 17 00:00:00 2001 From: Vamshi Maskuri <117595548+varshith257@users.noreply.github.com> Date: Wed, 25 Sep 2024 18:48:53 +0530 Subject: [PATCH] Cache Control --- .../jvm/src/test/scala/zio/http/ConformanceSpec.scala | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/zio-http/jvm/src/test/scala/zio/http/ConformanceSpec.scala b/zio-http/jvm/src/test/scala/zio/http/ConformanceSpec.scala index ad95c866e3..0f0c3d5fa3 100644 --- a/zio-http/jvm/src/test/scala/zio/http/ConformanceSpec.scala +++ b/zio-http/jvm/src/test/scala/zio/http/ConformanceSpec.scala @@ -630,9 +630,11 @@ object ConformanceSpec extends ZIOHttpSpec { ) for { response <- app.runZIO(Request.get("/test")) - } yield assertTrue( - response.headers.values(Header.XFrameOptions.name).length == 1, - ) + } yield { + val headersList = response.headers.toList + val xFrameOptionsHeaders = headersList.filter(_._1 == Header.XFrameOptions.name) + assertTrue(xFrameOptionsHeaders.length == 1) + } }, ), suite("cache-control")(