fix: some error for read raw data

This commit is contained in:
2021-12-21 15:14:10 +08:00
parent 45a77e5c07
commit df69dee282
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -68,6 +68,8 @@ module RepositoriesHelper
# else
# new_r_content = r_content + "?raw=true"
# end
new_r_content = r_content
unless r_content.include?("http://") || r_content.include?("https://") || r_content.include?("mailto:")
# new_r_content = "#{path}" + new_r_content
new_r_content = [base_url, "/api/#{owner&.login}/#{repo.identifier}/raw?filepath=#{r_content}&ref=#{ref}"].join