update prometheus dependencies (#5520)
Signed-off-by: junot <junotxiang@kubesphere.io>
This commit is contained in:
2
vendor/github.com/go-openapi/runtime/request.go
generated
vendored
2
vendor/github.com/go-openapi/runtime/request.go
generated
vendored
@@ -48,7 +48,7 @@ func HasBody(r *http.Request) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
if r.Header.Get(http.CanonicalHeaderKey("content-length")) != "" {
|
||||
if r.Header.Get("content-length") != "" {
|
||||
// in this case, no Transfer-Encoding should be present
|
||||
// we have a header set but it was explicitly set to 0, so we assume no body
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user