aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2009-01-22 15:00:59 +0000
committerfrancis <francis>2009-01-22 15:00:59 +0000
commit181eb8c43587b0edc95eb30de51ebf2db1eca2c8 (patch)
tree0bf20ddf0c7012a44a9d022b65eed703818c632f
parent9446cf117d7ced67e23362541f2b7daa06419e8e (diff)
Add another mime type for Excel spreadsheets (patch from Peter)
-rw-r--r--app/models/incoming_message.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index 7616c1154..e241668bb 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.182 2009-01-21 02:55:11 francis Exp $
+# $Id: incoming_message.rb,v 1.183 2009-01-22 15:00:59 francis Exp $
# TODO
# Move some of the (e.g. quoting) functions here into rblib, as they feel
@@ -135,7 +135,7 @@ end
def normalise_content_type(content_type)
# e.g. http://www.whatdotheyknow.com/request/93/response/250
- if content_type == 'application/msexcel' or content_type == 'application/x-ms-excel'
+ if content_type == 'application/excel' or content_type == 'application/msexcel' or content_type == 'application/x-ms-excel'
content_type = 'application/vnd.ms-excel'
end
if content_type == 'application/mspowerpoint' or content_type == 'application/x-ms-powerpoint'