aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/http.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-04-05 09:05:40 -0400
committerUnknwon <u@gogs.io>2017-04-05 09:05:40 -0400
commit6fbb984ebf4f0d6804f0f83e6edb12ef0bb9a570 (patch)
tree81f08210cb3553370795ec11c731d37bb3590122 /routers/repo/http.go
parentba151eda0a8b6eec2cb45f01fcbc8aef7ad5a06f (diff)
Refactoring: rename pkg/base -> pkg/tool
Diffstat (limited to 'routers/repo/http.go')
-rw-r--r--routers/repo/http.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/repo/http.go b/routers/repo/http.go
index b3b6aa1a..f90d1ce0 100644
--- a/routers/repo/http.go
+++ b/routers/repo/http.go
@@ -23,7 +23,7 @@ import (
"github.com/gogits/gogs/models"
"github.com/gogits/gogs/models/errors"
- "github.com/gogits/gogs/pkg/base"
+ "github.com/gogits/gogs/pkg/tool"
"github.com/gogits/gogs/pkg/context"
"github.com/gogits/gogs/pkg/setting"
)
@@ -106,7 +106,7 @@ func HTTPContexter() macaron.Handler {
askCredentials(c, http.StatusUnauthorized, "")
return
}
- authUsername, authPassword, err := base.BasicAuthDecode(auths[1])
+ authUsername, authPassword, err := tool.BasicAuthDecode(auths[1])
if err != nil {
askCredentials(c, http.StatusUnauthorized, "")
return
@@ -229,7 +229,7 @@ func ComposeHookEnvs(opts ComposeHookEnvsOptions) []string {
ENV_AUTH_USER_NAME + "=" + opts.AuthUser.Name,
ENV_AUTH_USER_EMAIL + "=" + opts.AuthUser.Email,
ENV_REPO_OWNER_NAME + "=" + opts.OwnerName,
- ENV_REPO_OWNER_SALT_MD5 + "=" + base.EncodeMD5(opts.OwnerSalt),
+ ENV_REPO_OWNER_SALT_MD5 + "=" + tool.EncodeMD5(opts.OwnerSalt),
ENV_REPO_ID + "=" + com.ToStr(opts.RepoID),
ENV_REPO_NAME + "=" + opts.RepoName,
ENV_REPO_CUSTOM_HOOKS_PATH + "=" + path.Join(opts.RepoPath, "custom_hooks"),