From b89ddeb62fb539d6968bbd3456eebca5091e0944 Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Fri, 26 Aug 2022 22:55:17 +0200 Subject: [PATCH] Use SetHeader instead of SendHeader Signed-off-by: Mustafa Gezen --- peridot/yumrepofs/v1/blob.go | 2 +- peridot/yumrepofs/v1/rpm.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/peridot/yumrepofs/v1/blob.go b/peridot/yumrepofs/v1/blob.go index a6165db8..343e56d8 100644 --- a/peridot/yumrepofs/v1/blob.go +++ b/peridot/yumrepofs/v1/blob.go @@ -78,7 +78,7 @@ func (s *Server) GetBlob(ctx context.Context, req *yumrepofspb.GetBlobRequest) ( } header := metadata.Pairs("Location", urlStr) - err = grpc.SendHeader(ctx, header) + err = grpc.SetHeader(ctx, header) if err != nil { s.log.Errorf("failed to send header: %v", err) return nil, status.Error(codes.Internal, "failed to send header") diff --git a/peridot/yumrepofs/v1/rpm.go b/peridot/yumrepofs/v1/rpm.go index de995c7e..953895d4 100644 --- a/peridot/yumrepofs/v1/rpm.go +++ b/peridot/yumrepofs/v1/rpm.go @@ -79,7 +79,7 @@ func (s *Server) GetRpm(ctx context.Context, req *yumrepofspb.GetRpmRequest) (*y } header := metadata.Pairs("Location", urlStr) - err = grpc.SendHeader(ctx, header) + err = grpc.SetHeader(ctx, header) if err != nil { s.log.Errorf("failed to send header: %v", err) return nil, status.Error(codes.Internal, "failed to send header")