diff --git a/pkg/distributor/http.go b/pkg/distributor/http.go index 770567bea6b2..fc0473584219 100644 --- a/pkg/distributor/http.go +++ b/pkg/distributor/http.go @@ -106,7 +106,7 @@ func ParseRequest(r *http.Request) (*logproto.PushRequest, error) { ) }() - switch r.Header.Get(contentType) { + switch contentType { case applicationJSON: var err error