Skip to content

Commit

Permalink
Mirror Plugin: Fix direct link handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ikaneshiro committed Apr 2, 2024
1 parent fc7a7ed commit 285dce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/plugins/mirror/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (p *Plugin) WebHandler(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, fmt.Sprintf("/%s/file/%s", repo, file), http.StatusMovedPermanently)
return
} else if rsync.FileMode(repositoryFile.Mode).IsLNK() {
file, err := p.repositoryManager.Get(p.ctx, repository).GetRepositoryFileByReferenceRaw(p.ctx, repositoryFile.Link)
file, err := p.repositoryManager.Get(p.ctx, repository).GetRepositoryFile(p.ctx, repositoryFile.Link)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
Expand Down

0 comments on commit 285dce6

Please sign in to comment.