mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-01-24 05:26:55 +02:00
Merge pull request #108 from pkoenig10/patch-1
Set redirect URL path when host is present
This commit is contained in:
commit
ca89bb833d
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user