Permalink
Browse files

Fix ring.middleware.file-info doc.

  • Loading branch information...
1 parent 9fdf25e commit 9d9cdfc3ef3c2fb92d1835e1aaedd3a9f5d6a612 @mmcgrana committed Mar 6, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 ring-core/src/ring/middleware/file_info.clj
View
8 ring-core/src/ring/middleware/file_info.clj
@@ -72,10 +72,10 @@
(defn wrap-file-info
"Wrap an app such that responses with a file a body will have
- corresponding Content-Type and Content-Length headers added if they are not
- allready present and can be determined from the file. If two arguments are
- given, the second is taken to be a map of file extensions to content types
- that will supplement the default, built-in map."
+ corresponding Content-Type and Content-Length headers added if they can be
+ determined from the file.
+ If two arguments are given, the second is taken to be a map of file extensions
+ to content types that will supplement the default, built-in map."
[app & [custom-mime-types]]
(let [mime-types (merge base-mime-types custom-mime-types)]
(fn [req]

0 comments on commit 9d9cdfc

Please sign in to comment.