From 8adcfcbffcd32a845f22aefe09f8c8618e05a490 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 11 Mar 2022 12:40:35 -0700 Subject: [PATCH] request_body: Clarify error behavior --- src/docs/markdown/caddyfile/directives/request_body.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/markdown/caddyfile/directives/request_body.md b/src/docs/markdown/caddyfile/directives/request_body.md index 552117e..a0bbed5 100644 --- a/src/docs/markdown/caddyfile/directives/request_body.md +++ b/src/docs/markdown/caddyfile/directives/request_body.md @@ -15,7 +15,7 @@ request_body [] { } ``` -- **max_size** is the maximum size in bytes allowed for the request body. It accepts all formats supported by [go-humanize](https://github.com/dustin/go-humanize/blob/master/bytes.go). +- **max_size** is the maximum size in bytes allowed for the request body. It accepts all size values supported by [go-humanize](https://pkg.go.dev/github.com/dustin/go-humanize#pkg-constants). Reads of more bytes will return an error with HTTP status 413. ## Examples