diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-06-15 13:28:43 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-06-15 13:28:43 +0100 |
commit | 11bf3cd8519f3b6e4c39548e8449e4ec4170a6d7 (patch) | |
tree | f2673391c0480723feda00a1d3b0eff38e68c9b2 /app/controllers | |
parent | ea6d92cc9e9504256216e601ddedfa6c5b801694 (diff) | |
parent | 4bb3e9d5ff49ec5fb108a5a618993248abcb3692 (diff) |
Merge branch 'release/0.6' into wdtk
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/request_controller.rb | 3 |
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 |