From 68ae08b048e21eb28e516e1d50d33dfa2f06d258 Mon Sep 17 00:00:00 2001 From: anfaas1618 Date: Sat, 3 Jan 2026 23:55:29 +0530 Subject: [PATCH] Add comment for bodyAllowedForStatus to clarify 1xx response handling --- context.go | 1 + 1 file changed, 1 insertion(+) diff --git a/context.go b/context.go index e4a10834..2135c72d 100644 --- a/context.go +++ b/context.go @@ -1034,6 +1034,7 @@ func (c *Context) requestHeader(key string) string { // bodyAllowedForStatus is a copy of http.bodyAllowedForStatus non-exported function. func bodyAllowedForStatus(status int) bool { switch { + // body isn't allowed for 1xx informational responses case status >= http.StatusContinue && status <= 199: return false case status == http.StatusNoContent: