diff --git a/.codecov.yaml b/.codecov.yaml new file mode 100644 index 00000000..a77043b2 --- /dev/null +++ b/.codecov.yaml @@ -0,0 +1,7 @@ +codecov: + coverage: + status: + project: + enabled: false + patch: + target: 99% diff --git a/context.go b/context.go index d73f59e3..65affc7f 100644 --- a/context.go +++ b/context.go @@ -1058,7 +1058,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