Skip to content
This repository has been archived by the owner on Jan 30, 2019. It is now read-only.

Commit

Permalink
Fix call to removed grpc method (see grpc/grpc-go#1157)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalil Smith-Nuevelle committed Aug 2, 2018
1 parent 4374f5f commit 1cc3109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/soapboxd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (e *emptyMetadataErr) Error() string {
}

func authorize(ctx context.Context) error {
if md, ok := metadata.FromContext(ctx); ok {
if md, ok := metadata.FromIncomingContext(ctx); ok {
userID := []byte(md["user_id"][0])
sentToken, err := base64.StdEncoding.DecodeString(md["login_token"][0])
if err != nil {
Expand Down

0 comments on commit 1cc3109

Please sign in to comment.