@@ -122,7 +122,8 class RepositoriesController < ApplicationController | |||||
122 |
|
122 | |||
123 | @content = @repository.cat(@path, @rev) |
|
123 | @content = @repository.cat(@path, @rev) | |
124 | (show_error_not_found; return) unless @content |
|
124 | (show_error_not_found; return) unless @content | |
125 |
if 'raw' == params[:format] || @content.is_binary_data? || |
|
125 | if 'raw' == params[:format] || @content.is_binary_data? || | |
|
126 | (@entry.size && @entry.size > Setting.file_max_size_displayed.to_i.kilobyte) | |||
126 | # Force the download |
|
127 | # Force the download | |
127 | send_data @content, :filename => filename_for_content_disposition(@path.split('/').last) |
|
128 | send_data @content, :filename => filename_for_content_disposition(@path.split('/').last) | |
128 | else |
|
129 | else |
General Comments 0
You need to be logged in to leave comments.
Login now