From 3c4586291784845b3e1a83f789aef681566394c2 Mon Sep 17 00:00:00 2001 From: Sandeep Sukhani Date: Fri, 29 Jan 2021 14:38:17 +0530 Subject: [PATCH] fix broken json logs push path (#3261) --- pkg/distributor/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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