From 6f71a7b5d15bdac1c7890bed9d0d7a9eeed9ac5d Mon Sep 17 00:00:00 2001 From: mehrdadbn9 Date: Thu, 12 Feb 2026 20:01:38 +0330 Subject: [PATCH] docs: clarify comment for bodyAllowedForStatus --- context.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/context.go b/context.go index 4c71a15b..696b35f2 100644 --- a/context.go +++ b/context.go @@ -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 < http.StatusOK: