Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuomo Ala-Vannesluoma <tuomoav@gmail.com>2018-09-11 20:17:58 +0300
committerTuomo Ala-Vannesluoma <tuomoav@gmail.com>2018-09-11 20:17:58 +0300
commitcdf67e05dc6de54790d899d350acf863ac4eceb1 (patch)
tree2b756d714ef79c97b92afaaf76a7d9d35d534150
parent7a47e860f3e31b02eacfff2bc32bef25e52f27b7 (diff)
Remove not used host
-rw-r--r--internal/auth/auth.go5
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 {