Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add .docx and .xlsx mime types.

  • Loading branch information...
commit cde03f384c12735ff0924dccd541274fb887d454 1 parent f6ee254
authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  lib/rack/mime.rb
2  lib/rack/mime.rb
@@ -139,6 +139,7 @@ def mime_type(ext, fallback='application/octet-stream')
139 139
       ".dmg"       => "application/octet-stream",
140 140
       ".dna"       => "application/vnd.dna",
141 141
       ".doc"       => "application/msword",
  142
+      ".docx"      => "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
142 143
       ".dot"       => "application/msword",
143 144
       ".dp"        => "application/vnd.osgi.dp",
144 145
       ".dpg"       => "application/vnd.dpgraph",
@@ -622,6 +623,7 @@ def mime_type(ext, fallback='application/octet-stream')
622 623
       ".xhtml"     => "application/xhtml+xml",
623 624
       ".xif"       => "image/vnd.xiff",
624 625
       ".xls"       => "application/vnd.ms-excel",
  626
+      ".xlsx"      => "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
625 627
       ".xml"       => "application/xml",
626 628
       ".xo"        => "application/vnd.olpc-sugar",
627 629
       ".xop"       => "application/xop+xml",

0 notes on commit cde03f3

Please sign in to comment.
Something went wrong with that request. Please try again.