Merge branch 'master' of github.com:gogits/gogs into dev
This commit is contained in:
commit
4a4997a3c7
3 changed files with 7 additions and 4 deletions
|
@ -246,10 +246,10 @@ func Http(ctx *middleware.Context, params martini.Params) {
|
|||
reponame = reponame[:len(reponame)-4]
|
||||
}
|
||||
|
||||
dir := models.RepoPath(username, reponame)
|
||||
prefix := path.Join("/", username, params["reponame"])
|
||||
server := webdav.NewServer(
|
||||
models.RepoPath(username, reponame),
|
||||
prefix, true)
|
||||
dir, prefix, true)
|
||||
|
||||
server.ServeHTTP(ctx.ResponseWriter, ctx.Req)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue