Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
varshith257 committed Sep 30, 2024
1 parent a8b5559 commit d9e15a1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions zio-http/jvm/src/test/scala/zio/http/ServerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -521,14 +521,12 @@ object ServerSpec extends RoutesRunnableSpec {
test("should return 400 Bad Request if Host header is missing") {
val routes = Handler.ok.toRoutes // Same approach as ServerErrorSpec: a simple handler

// Check the status when Host header is missing
val res = routes.deploy.status.run(path = Path.root, headers = Headers.empty)
val res = routes.deploy.status.run(path = Path.root, headers = Headers(Header.Host("")))
assertZIO(res)(equalTo(Status.BadRequest))
} +
test("should return 200 OK if Host header is present") {
val routes = Handler.ok.toRoutes

// Check the status when Host header is present
val res = routes.deploy.status.run(path = Path.root, headers = Headers(Header.Host("localhost")))
assertZIO(res)(equalTo(Status.Ok))
}
Expand Down

0 comments on commit d9e15a1

Please sign in to comment.