Skip to content

Commit

Permalink
Minor bug fixed when requesting files
Browse files Browse the repository at this point in the history
  • Loading branch information
agordillo committed Apr 17, 2021
1 parent 331d0a6 commit 3a40905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/documents_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def show
}
format.any {
path = @document.file.path(params[:style] || params[:format])
head(:not_found) and return unless File.exist?(path)
head(:not_found) and return unless (File.exist?(path) and request.format.nil? == false)
send_file path,
:filename => @document.file_file_name,
:disposition => "inline",
Expand Down

0 comments on commit 3a40905

Please sign in to comment.