We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f0268b commit aaa27d0Copy full SHA for aaa27d0
ring-core/src/ring/middleware/content_type.clj
@@ -6,7 +6,7 @@
6
(defn- guess-mime-type [{:keys [uri]} {:keys [body]} mime-types]
7
(or (ext-mime-type uri mime-types)
8
(when (instance? java.io.File body)
9
- (ext-mime-type (str body) mime-types))))
+ (ext-mime-type (.getAbsolutePath ^java.io.File body) mime-types))))
10
11
(defn content-type-response
12
"Adds a content-type header to response. See: wrap-content-type."
0 commit comments