From a34ba55368c38ef3c3ab065396a46afef4bc02fd Mon Sep 17 00:00:00 2001 From: timzaak Date: Wed, 6 Dec 2023 19:38:25 +0800 Subject: [PATCH] fix doc bytes (#3372) --- doc/endpoint/security.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/endpoint/security.md b/doc/endpoint/security.md index cb677720bb..e0d3ab82b5 100644 --- a/doc/endpoint/security.md +++ b/doc/endpoint/security.md @@ -60,7 +60,7 @@ Individual endpoints can be annotated with content length limit: import sttp.tapir._ import sttp.tapir.server.model.EndpointExtensions._ -val limitedEndpoint = endpoint.maxRequestBodyLength(maxBytes = 163484L) +val limitedEndpoint = endpoint.maxRequestBodyLength(maxBytes = 16384L) ``` The `EndpointsExtensions` utility is available in `tapir-server` core module.