diff options
author | Rishita Shaw <[email protected]> | 2024-11-23 01:15:58 +0530 |
---|---|---|
committer | GitHub <[email protected]> | 2024-11-22 19:45:58 +0000 |
commit | 8c3dd3de709040d72bd98a756a044c453d7e871e (patch) | |
tree | 4eb172f304134adc223760088b97fb8091438cd9 /logging.go | |
parent | eddbccd298f637c4785c891f5f96dbf103580fa8 (diff) | |
download | caddy-8c3dd3de709040d72bd98a756a044c453d7e871e.tar.gz caddy-8c3dd3de709040d72bd98a756a044c453d7e871e.zip |
requestbody: Type-based error handling for `MaxBytesError` (#6701)
* fix: handle "request body too large" error using type assertion
* fix: address overlooked nil check for MaxBytesError
* fix: replace type assertion with errors.As() for MaxBytesError
Diffstat (limited to 'logging.go')
0 files changed, 0 insertions, 0 deletions