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 a4b56ce commit 2288698
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zio-http/jvm/src/test/scala/zio/http/ConformanceSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ object ConformanceSpec extends ZIOHttpSpec {
test(
"should not include Content-Range in header for multipart/byteranges response(code_206_content_range_of_multiple_part_response)",
) {
val boundary = "A12345"
val boundary = zio.http.Boundary("A12345")

val app = Routes(
Method.GET / "partial" -> Handler.fromResponse(
Response
.status(Status.PartialContent)
.addHeader(Header.ContentType(MediaType("multipart", "byteranges", Some(zio.http.Boundary(boundary))))),
.addHeader(Header.ContentType(ContentType(MediaType.multipartByteranges, Some(boundary)))),
),
)

Expand Down

0 comments on commit 2288698

Please sign in to comment.