Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
varshith257 committed Sep 29, 2024
1 parent a5a0ce7 commit a131556
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ private[zio] final case class ServerInboundHandler(
val isValidHost = parts(0).forall(c => c.isLetterOrDigit || c == '.' || c == '-')
val isValidPort = parts.length == 1 || (parts.length == 2 && parts(1).forall(_.isDigit)) // Allow port number
val isValid = isValidHost && isValidPort
ZIO.logDebug(s"Host: $host, isValidHost: $isValidHost, isValidPort: $isValidPort, isValid: $isValid")
println(s"Host: $host, isValidHost: $isValidHost, isValidPort: $isValidPort, isValid: $isValid")
isValid
case None =>
ZIO.logDebug("Host header missing!")
println("Host header missing!")
false
}
}
Expand Down

0 comments on commit a131556

Please sign in to comment.