From 3c110d0c58f357bbd9abf759553c8df48365c6b4 Mon Sep 17 00:00:00 2001 From: Mike Seese Date: Wed, 18 Jan 2023 09:16:21 -0800 Subject: [PATCH] add Content-Type and Transfer-Encoding to matchfunction:run POST request --- internal/app/backend/backend_service.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/app/backend/backend_service.go b/internal/app/backend/backend_service.go index f6e0c6af0..e211acffe 100644 --- a/internal/app/backend/backend_service.go +++ b/internal/app/backend/backend_service.go @@ -279,6 +279,8 @@ func callHTTPMmf(ctx context.Context, cc *rpc.ClientCache, profile *pb.MatchProf if err != nil { return status.Errorf(codes.FailedPrecondition, "failed to create mmf http request for profile %s: %s", profile.GetName(), err.Error()) } + req.Header.Set("Content-Type", "application/json") + req.Header.Set("Transfer-Encoding", "chunked") resp, err := client.Do(req.WithContext(ctx)) if err != nil {