Skip to content

Commit f32a08c

Browse files
committed
Fallback to "application/octet-stream" content type
1 parent 7bfb2a4 commit f32a08c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cider/nrepl/middleware/slurp.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565

6666
(defn get-file-content-type [^Path p]
6767
(or (get known-content-types (split-last (.toString p) "."))
68-
(Files/probeContentType p)))
68+
(Files/probeContentType p)
69+
"application/octet-stream"))
6970

7071
;; FIXME (arrdem 2018-04-11):
7172
;; Remove this if-class when we have jdk1.8 min

0 commit comments

Comments
 (0)