Skip to content

Commit

Permalink
fix: scalafmt
Browse files Browse the repository at this point in the history
  • Loading branch information
MoeQuadrat committed Dec 8, 2022
1 parent 6eda6eb commit c524f35
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ class SmithyPlayEndpoint[Alg[_[_, _, _, _, _]], F[_] <: ContextRoute[_], Op[
def handler(v1: RequestHeader): Handler =
httpEndpoint.map { httpEp =>
Action.async(parse.raw) { implicit request =>

if(request.body.size > 0 && request.body.asBytes().isEmpty) {
logger.error("received body size does not equal the parsed body size. \n" +
"This is probably due to the body being too large and thus play is unable to parse.\n" +
"Try setting play.http.parser.maxMemoryBuffer in application.conf")
if (request.body.size > 0 && request.body.asBytes().isEmpty) {
logger.error(
"received body size does not equal the parsed body size. \n" +
"This is probably due to the body being too large and thus play is unable to parse.\n" +
"Try setting play.http.parser.maxMemoryBuffer in application.conf"
)
}
val result: EitherT[Future, ContextRouteError, O] = for {
pathParams <- getPathParams(v1, httpEp)
Expand Down

0 comments on commit c524f35

Please sign in to comment.