docs: clarify comment for bodyAllowedForStatus

This commit is contained in:
mehrdadbn9 2026-02-12 20:01:38 +03:30
parent a05bd4a07a
commit a9fde414a9

View File

@ -1056,7 +1056,8 @@ func (c *Context) requestHeader(key string) string {
/************************************/
// bodyAllowedForStatus is a copy of http.bodyAllowedForStatus non-exported function.
// Use http.StatusContinue constant for better code clarity
// Uses http.StatusContinue constant for better code clarity.
// Upper bound 199 covers all 1xx informational status codes.
func bodyAllowedForStatus(status int) bool {
switch {
case status >= http.StatusContinue && status <= 199: