summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
Diffstat (limited to 'web.go')
-rw-r--r--web.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/web.go b/web.go
index ed61063b1e..2cac775712 100644
--- a/web.go
+++ b/web.go
@@ -8,6 +8,7 @@ import (
"fmt"
"html/template"
"net/http"
+ "os"
"github.com/codegangsta/cli"
"github.com/go-martini/martini"
@@ -82,6 +83,7 @@ func runWeb(*cli.Context) {
})
avt := avatar.CacheServer("public/img/avatar/", "public/img/avatar_default.jpg")
+ os.MkdirAll("public/img/avatar/", os.ModePerm)
m.Get("/avatar/:hash", avt.ServeHTTP)
m.Group("/user", func(r martini.Router) {