Permalink
Browse files

Changed resource loader class to System

  • Loading branch information...
1 parent 5088925 commit 621874f08e222a5e1f5c960d227cc18a25e29537 @weavejester weavejester committed Sep 21, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 ring-core/src/ring/util/response.clj
View
6 ring-core/src/ring/util/response.clj
@@ -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

0 comments on commit 621874f

Please sign in to comment.