Skip to content

Commit

Permalink
Cache Control
Browse files Browse the repository at this point in the history
  • Loading branch information
varshith257 committed Sep 25, 2024
1 parent ff799ef commit f630f6b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions zio-http/jvm/src/test/scala/zio/http/ConformanceSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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")(
Expand Down

0 comments on commit f630f6b

Please sign in to comment.