Permalink
Browse files

add .docx and .xlsx mime types.

  • Loading branch information...
1 parent f6ee254 commit cde03f384c12735ff0924dccd541274fb887d454 John Doe committed Nov 19, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/rack/mime.rb
View
@@ -139,6 +139,7 @@ def mime_type(ext, fallback='application/octet-stream')
".dmg" => "application/octet-stream",
".dna" => "application/vnd.dna",
".doc" => "application/msword",
+ ".docx" => "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
".dot" => "application/msword",
".dp" => "application/vnd.osgi.dp",
".dpg" => "application/vnd.dpgraph",
@@ -622,6 +623,7 @@ def mime_type(ext, fallback='application/octet-stream')
".xhtml" => "application/xhtml+xml",
".xif" => "image/vnd.xiff",
".xls" => "application/vnd.ms-excel",
+ ".xlsx" => "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
".xml" => "application/xml",
".xo" => "application/vnd.olpc-sugar",
".xop" => "application/xop+xml",

0 comments on commit cde03f3

Please sign in to comment.