diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-15 20:01:20 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-15 20:01:20 -0400 |
commit | c3a52f7dd075f1f3cf7fb935b7489629760837ab (patch) | |
tree | ab27cc4a5cc1d10c366bcfd04585f02fccb8176b /web.go | |
parent | 67426534ef9f0ceba49330cbc0b7676f4009a6e1 (diff) | |
download | gitea-c3a52f7dd075f1f3cf7fb935b7489629760837ab.tar.gz gitea-c3a52f7dd075f1f3cf7fb935b7489629760837ab.zip |
Mirror bug fix on downloading zip
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |