From 095f71305391f6331cc2b88e4f7d629cc6d727f4 Mon Sep 17 00:00:00 2001 From: Yegor Jbanov Date: Mon, 18 Jul 2016 16:29:22 -0700 Subject: [PATCH] /api/get-authentication-status succeeds despite errors --- app/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/main.go b/app/main.go index de610a495a..159d0b7d66 100644 --- a/app/main.go +++ b/app/main.go @@ -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{}