forked from NYANDEV/forgejo
Use router param for filepath in GetRawFile (#19499)
* Use router param for filepath Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move TreePath back into RepoRefForAPI Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
parent
6cc8aed737
commit
3c140f0d42
1 changed files with 1 additions and 0 deletions
|
@ -362,6 +362,7 @@ func RepoRefForAPI(next http.Handler) http.Handler {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
ctx.Repo.Commit = commit
|
ctx.Repo.Commit = commit
|
||||||
|
ctx.Repo.TreePath = ctx.Params("*")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue