git.iko.soy/typeable/oauth2-proxy
on master help sign in
Merge pull request #108 from pkoenig10/patch-1
ca89bb8Joel Speed
oauthproxy.go+1−1
@@ -204,7 +204,7 @@ func NewOAuthProxy(opts *Options, validator func(string) bool) *OAuthProxy {
204 }
204 }
205
205
206 redirectURL := opts.redirectURL
206 redirectURL := opts.redirectURL
207− if redirectURL.String() == "" {
207+ if redirectURL.Path == "" {
208 redirectURL.Path = fmt.Sprintf("%s/callback", opts.ProxyPrefix)
208 redirectURL.Path = fmt.Sprintf("%s/callback", opts.ProxyPrefix)
209 }
209 }
210
210