From ea9a05951fd60ef00fc9dc7a07f6621a7f48306f Mon Sep 17 00:00:00 2001 From: Vamshi Maskuri <117595548+varshith257@users.noreply.github.com> Date: Tue, 24 Sep 2024 21:41:26 +0530 Subject: [PATCH] add 206 requires tests --- .../jvm/src/test/scala/zio/http/ConformanceSpec.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 9727de248f..b778bf64ec 100644 --- a/zio-http/jvm/src/test/scala/zio/http/ConformanceSpec.scala +++ b/zio-http/jvm/src/test/scala/zio/http/ConformanceSpec.scala @@ -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)), ), ) @@ -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"))), ), ) @@ -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