Skip to content

Commit

Permalink
Changed resource loader class to System
Browse files Browse the repository at this point in the history
  • Loading branch information
weavejester committed Sep 21, 2010
1 parent 5088925 commit 621874f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ring-core/src/ring/util/response.clj
Expand Up @@ -60,9 +60,9 @@
Options:
:root - take the resource relative to this root"
[path & [opts]]
(let [path (str (:root opts "") "/" path)
path (.replace path "//" "/")]
(if-let [resource (.getResourceAsStream (class file-response) path)] ; any Ring fn will do here
(let [path (str (:root opts "") "/" path)
path (.replace path "//" "/")]
(if-let [resource (.getResourceAsStream System path)]
(response resource))))

(defn status
Expand Down

0 comments on commit 621874f

Please sign in to comment.