Skip to content

Commit

Permalink
/api/get-authentication-status succeeds despite errors (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
yjbanov authored Jul 18, 2016
1 parent 5a630c5 commit e253725
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ func getAuthenticatedContext(ctx context.Context, r *http.Request) (context.Cont

func getAuthenticationStatus(w http.ResponseWriter, r *http.Request) {
ctx := appengine.NewContext(r)
ctx, err := getAuthenticatedContext(ctx, r)

// Ignore returned context. This request must succeed in the presence of
// errors.
_, err := getAuthenticatedContext(ctx, r)

var response map[string]interface{}

Expand Down

0 comments on commit e253725

Please sign in to comment.