Use http.StatusContinue constant for clarity in status code comparison

This commit is contained in:
anfaas1618 2026-01-03 23:48:28 +05:30
parent 9914178584
commit 762433d85e

View File

@ -1034,7 +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 {
case status >= 100 && status <= 199:
case status >= http.StatusContinue && status <= 199:
return false
case status == http.StatusNoContent:
return false