|
|
@ -246,10 +246,10 @@ func Http(ctx *middleware.Context, params martini.Params) { |
|
|
|
reponame = reponame[:len(reponame)-4] |
|
|
|
reponame = reponame[:len(reponame)-4] |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dir := models.RepoPath(username, reponame) |
|
|
|
prefix := path.Join("/", username, params["reponame"]) |
|
|
|
prefix := path.Join("/", username, params["reponame"]) |
|
|
|
server := webdav.NewServer( |
|
|
|
server := webdav.NewServer( |
|
|
|
models.RepoPath(username, reponame), |
|
|
|
dir, prefix, true) |
|
|
|
prefix, true) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
server.ServeHTTP(ctx.ResponseWriter, ctx.Req) |
|
|
|
server.ServeHTTP(ctx.ResponseWriter, ctx.Req) |
|
|
|
} |
|
|
|
} |
|
|
|