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")