File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ func gitlabDirector(r *http.Request) {
49
49
}
50
50
51
51
log := getLogEntry (r )
52
- log .Infof ("Proxying to GitHub : %v" , r .URL .String ())
52
+ log .Infof ("Proxying to GitLab : %v" , r .URL .String ())
53
53
}
54
54
55
55
func (gl * GitLabGateway ) ServeHTTP (w http.ResponseWriter , r * http.Request ) {
@@ -69,7 +69,7 @@ func (gl *GitLabGateway) ServeHTTP(w http.ResponseWriter, r *http.Request) {
69
69
apiURL := singleJoiningSlash (endpoint , "/repos/" + config .GitLab .Repo )
70
70
target , err := url .Parse (apiURL )
71
71
if err != nil {
72
- handleError (internalServerError ("Unable to process GitHub endpoint" ), w , r )
72
+ handleError (internalServerError ("Unable to process GitLab endpoint" ), w , r )
73
73
return
74
74
}
75
75
ctx = withProxyTarget (ctx , target )
@@ -87,7 +87,7 @@ func (gl *GitLabGateway) authenticate(w http.ResponseWriter, r *http.Request) er
87
87
}
88
88
89
89
if ! gitlabAllowedRegexp .MatchString (r .URL .Path ) {
90
- return errors .New ("Access to endpoint not allowed: this part of GitHub 's API has been restricted" )
90
+ return errors .New ("Access to endpoint not allowed: this part of GitLab 's API has been restricted" )
91
91
}
92
92
93
93
if len (config .Roles ) == 0 {
You can’t perform that action at this time.
0 commit comments