Check for MaxBytesError
instead of a string comparison
#6700
Labels
good first issue 🐤
Good for newcomers
MaxBytesError
instead of a string comparison
#6700
We should stop comparing against
"http: request body too large"
when detecting a ReadCloser error:caddy/modules/caddyhttp/requestbody/requestbody.go
Line 97 in eddbccd
Go stdlib now has a
MaxBytesError
type we can check for.The text was updated successfully, but these errors were encountered: