Compare commits

...

3 Commits

View File

@ -1057,7 +1057,8 @@ 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:
// body isn't allowed for 1xx informational responses
case status >= http.StatusContinue && status <= 199:
return false
case status == http.StatusNoContent:
return false