Skip to content

Commit bf9048f

Browse files
committed
Remote read Content-Type unset in tests
Signed-off-by: György Krajcsovits <[email protected]>
1 parent 824e768 commit bf9048f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/ruler/remotequerier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func (q *RemoteQuerier) Read(ctx context.Context, query *prompb.Query, sortSerie
204204
break
205205
}
206206
}
207-
if contentType != "application/x-protobuf" {
207+
if len(contentType) > 0 && contentType != "application/x-protobuf" {
208208
return nil, errors.Errorf("unexpected response content type %s", contentType)
209209
}
210210

0 commit comments

Comments
 (0)