aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2009-09-14 13:16:18 +0000
committerfrancis <francis>2009-09-14 13:16:18 +0000
commit6acda8cdceafef6dde0cd7ab94e6fe43fe0f0076 (patch)
tree66c96cd7d59847db0729754470913ef362bc645b
parent9abae21367e28746611fd582ae7953466c3ad919 (diff)
For debugbging.
-rw-r--r--app/controllers/request_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb
index 3465ae149..b31b4fbae 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.180 2009-09-09 17:14:35 francis Exp $
+# $Id: request_controller.rb,v 1.181 2009-09-14 13:16:18 francis Exp $
class RequestController < ApplicationController
@@ -520,6 +520,7 @@ class RequestController < ApplicationController
def cache_attachments
key = params.merge(:only_path => true)
if cached = read_fragment(key)
+ #if cached = 'zzz***zzz'
IncomingMessage # load global filename_to_mimetype XXX should move filename_to_mimetype to proper namespace
response.content_type = filename_to_mimetype(params[:file_name].join("/")) or 'application/octet-stream'
render_for_text(cached)