diff options
author | Tuomo Ala-Vannesluoma <tuomoav@gmail.com> | 2018-09-11 20:17:58 +0300 |
---|---|---|
committer | Tuomo Ala-Vannesluoma <tuomoav@gmail.com> | 2018-09-11 20:17:58 +0300 |
commit | cdf67e05dc6de54790d899d350acf863ac4eceb1 (patch) | |
tree | 2b756d714ef79c97b92afaaf76a7d9d35d534150 | |
parent | 7a47e860f3e31b02eacfff2bc32bef25e52f27b7 (diff) |
Remove not used host
-rw-r--r-- | internal/auth/auth.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/internal/auth/auth.go b/internal/auth/auth.go index 5890feae..4f4427ff 100644 --- a/internal/auth/auth.go +++ b/internal/auth/auth.go @@ -54,11 +54,6 @@ type errorResponse struct { } func (a *Auth) getSessionFromStore(r *http.Request) (*sessions.Session, error) { - host, _, err := net.SplitHostPort(r.Host) - if err != nil { - host = r.Host - } - session, err := a.store.Get(r, "gitlab-pages") if session != nil { |