aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2008-12-18 19:21:09 +0000
committerfrancis <francis>2008-12-18 19:21:09 +0000
commit1f7d9c0db7f9134e699662194fde9a2de423ea6e (patch)
treeb0de81776602dc34998c1f12f7c03c28dac2fd63
parentd0c412d09657cbc0a7c28ab3ed3dfb2f2ef65ff1 (diff)
application/acrobat mime type
-rw-r--r--app/models/incoming_message.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index 74a8f64f7..2e47e69f4 100644
--- a/app/models/incoming_message.rb
+++ b/app/models/incoming_message.rb
@@ -19,7 +19,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: incoming_message.rb,v 1.176 2008-12-18 18:55:22 francis Exp $
+# $Id: incoming_message.rb,v 1.177 2008-12-18 19:21:09 francis Exp $
# TODO
# Move some of the (e.g. quoting) functions here into rblib, as they feel
@@ -148,6 +148,11 @@ def normalise_content_type(content_type)
content_type = 'application/zip'
end
+ # e.g. http://www.whatdotheyknow.com/request/copy_of_current_swessex_scr_opt#incoming-9928
+ if content_type == 'application/acrobat'
+ content_type = 'application/pdf'
+ end
+
return content_type
end