git.iko.soy/typeable/oauth2-proxy
on master help sign in
Fix typos in doc strings.
commit90f8117fba5138aed8880fd373d9c2d04055232b authorPaul Groudas <paul@clubhouse.io> dateFri 20 Dec 2019, 09:44 (7 years ago) parent7663565
2 files changed+2−2
oauthproxy.go+1−1 pkg/cookies/cookies.go+1−1
oauthproxy.go+1−1
@@ -195,7 +195,7 @@ func NewWebSocketOrRestReverseProxy(u *url.URL, opts *Options, auth hmacauth.Hma
195195 }
196196}
197197
198−// NewOAuthProxy creates a new instance of OOuthProxy from the options provided
198+// NewOAuthProxy creates a new instance of OAuthProxy from the options provided
199199func NewOAuthProxy(opts *Options, validator func(string) bool) *OAuthProxy {
200200 serveMux := http.NewServeMux()
201201 var auth hmacauth.HmacAuth
pkg/cookies/cookies.go+1−1
@@ -34,7 +34,7 @@ func MakeCookie(req *http.Request, name string, value string, path string, domai
3434 }
3535}
3636
37−// MakeCookieFromOptions constructs a cookie based on the givemn *options.CookieOptions,
37+// MakeCookieFromOptions constructs a cookie based on the given *options.CookieOptions,
3838// value and creation time
3939func MakeCookieFromOptions(req *http.Request, name string, value string, opts *options.CookieOptions, expiration time.Duration, now time.Time) *http.Cookie {
4040 return MakeCookie(req, name, value, opts.CookiePath, opts.CookieDomain, opts.CookieHTTPOnly, opts.CookieSecure, expiration, now)