Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
varshith257 committed Sep 28, 2024
1 parent 3b35334 commit 8f59b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zio-http/shared/src/main/scala/zio/http/Header.scala
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ object Header {
override def render(value: HeaderValue): String = value.value.toString
}

def validate(headers: Headers): ZIO[Any, Response, Unit] = {
def validateHeaders(headers: Headers): ZIO[Any, Response, Unit] = {
val invalidHeaderChars = Set('\r', '\n', '\u0000')
val hasInvalidChar = headers.toList.exists { header =>
header.renderedValue.exists(invalidHeaderChars.contains)
Expand Down

0 comments on commit 8f59b20

Please sign in to comment.