Skip to content

Commit

Permalink
Fix sizeIs
Browse files Browse the repository at this point in the history
  • Loading branch information
ioleo committed Sep 22, 2023
1 parent 924ac66 commit c3e6ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zio-http/src/main/scala/zio/http/Handler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ object Handler {
.runFoldZIO(Chunk.empty[Byte]) { case (acc, bytes) =>
ZIO
.succeed(acc ++ bytes)
.filterOrFail(_.sizeIs < limit)(new Exception("Too large input"))
.filterOrFail(_.size < limit)(new Exception("Too large input"))
},
)

Expand Down

0 comments on commit c3e6ba9

Please sign in to comment.