aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/request_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r--app/controllers/request_controller.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb
index 5d281a509..cfb9c1a05 100644
--- a/app/controllers/request_controller.rb
+++ b/app/controllers/request_controller.rb
@@ -4,7 +4,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: request_controller.rb,v 1.138 2008-11-07 16:52:30 francis Exp $
+# $Id: request_controller.rb,v 1.139 2008-11-10 18:08:29 francis Exp $
class RequestController < ApplicationController
@@ -432,6 +432,9 @@ class RequestController < ApplicationController
response.content_type = 'application/octet-stream'
if !@attachment.content_type.nil?
+ # Hmm, this is a bit rubbish as when cached won't cache the content
+ # type. We try to overcome it by setting the file extension right
+ # in FOIAttachment.
response.content_type = @attachment.content_type
end
render :text => @attachment.body