aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/request_controller.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-06-15 13:28:07 +0100
committerSeb Bacon <seb.bacon@gmail.com>2012-06-15 13:28:07 +0100
commit4bb3e9d5ff49ec5fb108a5a618993248abcb3692 (patch)
tree02e4bdb5a52d77b2892c1fe8dab480b749541107 /app/controllers/request_controller.rb
parentf6fb315a1b49e77b65327c381db81112dc42c8ae (diff)
Revert "Set a "Content-Disposition: attachment" header when downloading files. Closes #428"
This reverts commit 506af7a640f63b17000ccfc5e1344bbc3039c913. See issue #428 for a discussion
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r--app/controllers/request_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb
index f87efbcb0..aa770e151 100644
--- a/app/controllers/request_controller.rb
+++ b/app/controllers/request_controller.rb
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# app/controllers/request_controller.rb:
# Show information about one particular request.
#
@@ -710,7 +709,7 @@ class RequestController < ApplicationController
# we don't use @attachment.content_type here, as we want same mime type when cached in cache_attachments above
response.content_type = AlaveteliFileTypes.filename_to_mimetype(params[:file_name].join("/")) || 'application/octet-stream'
- headers["Content-Disposition"] = "attachment; filename=#{params[:file_name]}"
+
render :text => @attachment.body
end