Permalink
Browse files
Changed resource loader class to System
- Loading branch information...
Showing
with
3 additions
and
3 deletions.
-
+3
−3
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