diff --git a/zio-http-testkit/src/test/scala/zio/http/TestServerSpec.scala b/zio-http-testkit/src/test/scala/zio/http/TestServerSpec.scala index 084d9197e2..d5d7b462ab 100644 --- a/zio-http-testkit/src/test/scala/zio/http/TestServerSpec.scala +++ b/zio-http-testkit/src/test/scala/zio/http/TestServerSpec.scala @@ -118,6 +118,10 @@ object TestServerSpec extends ZIOHttpSpec { port <- ZIO.serviceWithZIO[Server](_.port) } yield Request .get(url = URL.root.port(port)) - .addHeaders(Headers(Header.Accept(MediaType.text.`plain`))) - + .addHeaders( + Headers( + Header.Accept(MediaType.text.`plain`), + Header.Host("localhost"), + ), + ) }