summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorskyblue <ssx205@gmail.com>2014-03-26 21:26:31 +0800
committerskyblue <ssx205@gmail.com>2014-03-26 21:26:31 +0800
commit4662a73ac34adeeeb6fc48ba6ac69b6a4adf18bc (patch)
tree6dc79a28443c9c3688cc6e1b2469f64395e3067b /web.go
parent409e4cde7a379bbdbe53367b3726f64b80aed0eb (diff)
downloadgitea-4662a73ac34adeeeb6fc48ba6ac69b6a4adf18bc.tar.gz
gitea-4662a73ac34adeeeb6fc48ba6ac69b6a4adf18bc.zip
name change of avatar
Diffstat (limited to 'web.go')
-rw-r--r--web.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/web.go b/web.go
index 9b7b21639a..9423c3eecb 100644
--- a/web.go
+++ b/web.go
@@ -96,8 +96,8 @@ func runWeb(*cli.Context) {
m.Get("/stars", reqSignIn, user.Stars)
m.Get("/help", routers.Help)
- avatarCache := avatar.HttpHandler("public/img/avatar/", "public/img/avatar_default.jpg")
- m.Get("/avatar/:hash", avatarCache.ServeHTTP)
+ avt := avatar.CacheServer("public/img/avatar/", "public/img/avatar_default.jpg")
+ m.Get("/avatar/:hash", avt.ServeHTTP)
m.Group("/user", func(r martini.Router) {
r.Any("/login", binding.BindIgnErr(auth.LogInForm{}), user.SignIn)