diff --git a/zio-http/src/main/scala/zio/http/Handler.scala b/zio-http/src/main/scala/zio/http/Handler.scala index 635a648f62..08f7a72b2c 100644 --- a/zio-http/src/main/scala/zio/http/Handler.scala +++ b/zio-http/src/main/scala/zio/http/Handler.scala @@ -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")) }, )