mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-18 17:08:29 +00:00
Use SetHeader instead of SendHeader
Signed-off-by: Mustafa Gezen <mustafa@ctrliq.com>
This commit is contained in:
parent
eeaced0b14
commit
b89ddeb62f
@ -78,7 +78,7 @@ func (s *Server) GetBlob(ctx context.Context, req *yumrepofspb.GetBlobRequest) (
|
|||||||
}
|
}
|
||||||
|
|
||||||
header := metadata.Pairs("Location", urlStr)
|
header := metadata.Pairs("Location", urlStr)
|
||||||
err = grpc.SendHeader(ctx, header)
|
err = grpc.SetHeader(ctx, header)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.log.Errorf("failed to send header: %v", err)
|
s.log.Errorf("failed to send header: %v", err)
|
||||||
return nil, status.Error(codes.Internal, "failed to send header")
|
return nil, status.Error(codes.Internal, "failed to send header")
|
||||||
|
@ -79,7 +79,7 @@ func (s *Server) GetRpm(ctx context.Context, req *yumrepofspb.GetRpmRequest) (*y
|
|||||||
}
|
}
|
||||||
|
|
||||||
header := metadata.Pairs("Location", urlStr)
|
header := metadata.Pairs("Location", urlStr)
|
||||||
err = grpc.SendHeader(ctx, header)
|
err = grpc.SetHeader(ctx, header)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.log.Errorf("failed to send header: %v", err)
|
s.log.Errorf("failed to send header: %v", err)
|
||||||
return nil, status.Error(codes.Internal, "failed to send header")
|
return nil, status.Error(codes.Internal, "failed to send header")
|
||||||
|
Loading…
Reference in New Issue
Block a user