Skip to content

Commit

Permalink
add 206 requires tests
Browse files Browse the repository at this point in the history
  • Loading branch information
varshith257 committed Sep 24, 2024
1 parent 3e4c187 commit ea9a059
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zio-http/jvm/src/test/scala/zio/http/ConformanceSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ object ConformanceSpec extends ZIOHttpSpec {
Method.GET / "partial" -> Handler.fromResponse(
Response
.status(Status.PartialContent)
.addHeader(Header.ContentRange("bytes 0-14/14")),
.addHeader(Header.ContentRange.StartEnd("bytes", 0, 14)),
),
)

Expand All @@ -66,7 +66,7 @@ object ConformanceSpec extends ZIOHttpSpec {
Method.GET / "partial" -> Handler.fromResponse(
Response
.status(Status.PartialContent)
.addHeader(Header.ContentType("multipart/byteranges; boundary=A")),
.addHeader(Header.ContentType(MediaType.multipartByteranges("A"))),
),
)

Expand All @@ -85,8 +85,8 @@ object ConformanceSpec extends ZIOHttpSpec {
Method.GET / "partial" -> Handler.fromResponse(
Response
.status(Status.PartialContent)
.addHeader(Header.ETag("abc"))
.addHeader(Header.CacheControl("max-age=3600")),
.addHeader(Header.ETag.Strong("abc"))
.addHeader(Header.CacheControl.MaxAge(3600)),
),
Method.GET / "full" -> Handler.fromResponse(
Response
Expand Down

0 comments on commit ea9a059

Please sign in to comment.