aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2016-04-22 20:49:42 +0100
committerNiall Sheridan <nsheridan@gmail.com>2016-04-22 20:49:42 +0100
commit5e951c17cc1566df8655232708d56021fd8b796b (patch)
treedaf7459d817f6a39a774dc480d2e8511af7e0eb3
parent56526c76b563d004f07fe0c538fff626929067de (diff)
parentff3f98a36705c965736b8332a74d5be13b33cc9a (diff)
Merge pull request #1 from olive42/fixtypo
Fix typo in comment.
-rw-r--r--server/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/main.go b/server/main.go
index c5865de..3a20460 100644
--- a/server/main.go
+++ b/server/main.go
@@ -40,7 +40,7 @@ type appContext struct {
jwtSigningKey []byte
}
-// getAuthCookie retrieves a the cookie from the request and validates it.
+// getAuthCookie retrieves a cookie from the request and validates it.
func (a *appContext) getAuthCookie(r *http.Request) *oauth2.Token {
session, _ := a.cookiestore.Get(r, "tok")
t, ok := session.Values["token"]