Merge pull request #108 from pkoenig10/patch-1

Set redirect URL path when host is present
This commit is contained in:
Joel Speed
2019-03-20 16:41:09 +00:00
committed by GitHub
+1 -1
View File
@@ -204,7 +204,7 @@ func NewOAuthProxy(opts *Options, validator func(string) bool) *OAuthProxy {
}
redirectURL := opts.redirectURL
if redirectURL.String() == "" {
if redirectURL.Path == "" {
redirectURL.Path = fmt.Sprintf("%s/callback", opts.ProxyPrefix)
}