git.iko.soy/typeable/oauth2-proxy
on master help sign in
Ensure all errors are logged in ProcessCookie()
commitf554f99abd3da239545b6785625089ac29f45a25 authorMike Bland <michael.bland@gsa.gov> dateFri 8 May 2015, 11:51 (11 years ago) parentbeed9fb
1 file changed+3−3
oauthproxy.go+3−3
oauthproxy.go+3−3
@@ -266,11 +266,11 @@ func (p *OauthProxy) ProcessCookie(rw http.ResponseWriter, req *http.Request) (e
266266 if ok {
267267 email, user, access_token, err = parseCookieValue(
268268 value, p.AesCipher)
269− if err != nil {
270− log.Printf(err.Error())
271− }
272269 }
273270 }
271+ if err != nil {
272+ log.Printf(err.Error())
273+ }
274274 return
275275}
276276