From ff84530c0aa72d2a035ce64749687e559a641600 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Fri, 11 Dec 2015 17:22:28 +0100 Subject: Remove trailing slashes from gitlab_url They do not play nice with gitlab-workhorse (or rather Golang net/http DefaultServemux). --- lib/gitlab_config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gitlab_config.rb') diff --git a/lib/gitlab_config.rb b/lib/gitlab_config.rb index caca176..a8d03f3 100644 --- a/lib/gitlab_config.rb +++ b/lib/gitlab_config.rb @@ -24,7 +24,7 @@ class GitlabConfig end def gitlab_url - @config['gitlab_url'] ||= "http://localhost/" + (@config['gitlab_url'] ||= "http://localhost").sub(%r{/*$}, '') end def http_settings -- cgit v1.2.1