Skip to content

Commit

Permalink
Update TestServerSpec.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
Saturn225 authored Oct 19, 2024
1 parent f2ccf4a commit 16ed7ea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions zio-http-testkit/src/test/scala/zio/http/TestServerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
),
)
}

0 comments on commit 16ed7ea

Please sign in to comment.