From 16ed7ea7123699de7015d1849111405f677a10ec Mon Sep 17 00:00:00 2001 From: Saturn225 <101260782+Saturn225@users.noreply.github.com> Date: Sat, 19 Oct 2024 22:32:49 +0530 Subject: [PATCH] Update TestServerSpec.scala --- .../src/test/scala/zio/http/TestServerSpec.scala | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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"), + ), + ) }