From 6f9eac51900510fa7a5ec1222fc3d2418e9326c9 Mon Sep 17 00:00:00 2001 From: Patrick Koenig Date: Wed, 20 Mar 2019 09:25:04 -0700 Subject: [PATCH] Set redirect URL path when host is present --- oauthproxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauthproxy.go b/oauthproxy.go index 1dbb063..561dce3 100644 --- a/oauthproxy.go +++ b/oauthproxy.go @@ -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) }