fix: download file need authorize

This commit is contained in:
2021-09-10 10:52:21 +08:00
parent d5de6aa66b
commit 90ace8b753
4 changed files with 18 additions and 1 deletions

View File

@@ -17,7 +17,8 @@ if @project.forge?
dir_path = [@owner.login, @repository.identifier, "raw/branch", @ref].join('/')
render_download_image_url(dir_path, entry['path'], decode64_content(entry, @owner, @repository, @ref))
else
entry['download_url']
# entry['download_url']
render_download_file_url(@owner, @repository, entry['path'].to_s, @ref)
end
json.download_url download_url