1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-03-21 21:47:11 +02:00

Fix typos in doc strings.

This commit is contained in:
Paul Groudas 2019-12-20 09:44:59 -05:00
parent 7663565cd3
commit 90f8117fba
2 changed files with 2 additions and 2 deletions

@ -195,7 +195,7 @@ func NewWebSocketOrRestReverseProxy(u *url.URL, opts *Options, auth hmacauth.Hma
}
}
// NewOAuthProxy creates a new instance of OOuthProxy from the options provided
// NewOAuthProxy creates a new instance of OAuthProxy from the options provided
func NewOAuthProxy(opts *Options, validator func(string) bool) *OAuthProxy {
serveMux := http.NewServeMux()
var auth hmacauth.HmacAuth

@ -34,7 +34,7 @@ func MakeCookie(req *http.Request, name string, value string, path string, domai
}
}
// MakeCookieFromOptions constructs a cookie based on the givemn *options.CookieOptions,
// MakeCookieFromOptions constructs a cookie based on the given *options.CookieOptions,
// value and creation time
func MakeCookieFromOptions(req *http.Request, name string, value string, opts *options.CookieOptions, expiration time.Duration, now time.Time) *http.Cookie {
return MakeCookie(req, name, value, opts.CookiePath, opts.CookieDomain, opts.CookieHTTPOnly, opts.CookieSecure, expiration, now)