Skip to content

Commit 0958bdd

Browse files
committed
Fix typos
1 parent 66bcd32 commit 0958bdd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/gitlab.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func gitlabDirector(r *http.Request) {
4949
}
5050

5151
log := getLogEntry(r)
52-
log.Infof("Proxying to GitHub: %v", r.URL.String())
52+
log.Infof("Proxying to GitLab: %v", r.URL.String())
5353
}
5454

5555
func (gl *GitLabGateway) ServeHTTP(w http.ResponseWriter, r *http.Request) {
@@ -69,7 +69,7 @@ func (gl *GitLabGateway) ServeHTTP(w http.ResponseWriter, r *http.Request) {
6969
apiURL := singleJoiningSlash(endpoint, "/repos/"+config.GitLab.Repo)
7070
target, err := url.Parse(apiURL)
7171
if err != nil {
72-
handleError(internalServerError("Unable to process GitHub endpoint"), w, r)
72+
handleError(internalServerError("Unable to process GitLab endpoint"), w, r)
7373
return
7474
}
7575
ctx = withProxyTarget(ctx, target)
@@ -87,7 +87,7 @@ func (gl *GitLabGateway) authenticate(w http.ResponseWriter, r *http.Request) er
8787
}
8888

8989
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")
9191
}
9292

9393
if len(config.Roles) == 0 {

0 commit comments

Comments
 (0)