add Content-Type and Transfer-Encoding to matchfunction:run POST request (#1530)

This commit is contained in:
Mike Seese
2023-01-27 01:36:03 -08:00
committed by GitHub
parent 31a4a45d73
commit 50b4063bee

View File

@ -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 {