Skip to content

Commit

Permalink
fix CLRF
Browse files Browse the repository at this point in the history
  • Loading branch information
varshith257 committed Sep 28, 2024
1 parent 74175b1 commit ba946c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zio-http/shared/src/main/scala/zio/http/Routes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ final case class Routes[-Env, +Err](routes: Chunk[zio.http.Route[Env, Err]]) { s
Handler.status(Status.BadRequest)
}
// Case 2: Multiple Host headers
else if (hostHeaders.length > 1) {
else if (hostHeaders.size > 1) {
Handler.status(Status.BadRequest)
}
// Case 3: Host header contains invalid characters
Expand Down

0 comments on commit ba946c7

Please sign in to comment.