Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

Commit

Permalink
proxy: Update to the new GRPC metadata API
Browse files Browse the repository at this point in the history
metadata.FromContext has been deprecated, for our use case we need to
call metadata.FromIncomingContext instead.

grpc/grpc-go#1392
grpc/proposal@c8857c2
  • Loading branch information
albertito committed Aug 22, 2017
1 parent 86fff29 commit a9778ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remoteu2f-proxy/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (s *Server) getOp(key string) (*PendingOp, bool) {
}

func (s *Server) checkOauth(ctx context.Context) error {
md, ok := metadata.FromContext(ctx)
md, ok := metadata.FromIncomingContext(ctx)
if !ok || md == nil {
return grpc.Errorf(codes.PermissionDenied, "MD not found")
}
Expand Down

0 comments on commit a9778ce

Please sign in to comment.