File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
- (defproject ring /ring-core " 1.12.2"
1
+ (defproject ring /ring-core " 1.12.2-patched-graal "
2
2
:description " Ring core libraries."
3
3
:url " https://github.com/ring-clojure/ring"
4
4
:scm {:dir " .." }
Original file line number Diff line number Diff line change 297
297
:content-length (connection-content-length conn)
298
298
:last-modified (connection-last-modified conn)})))
299
299
300
+ (defmethod resource-data :resource
301
+ [^java.net.URL url]
302
+ ; ; GraalVM resource scheme
303
+ (let [resource (.openConnection url)]
304
+ {:content (.getInputStream resource)
305
+ :content-length (connection-content-length resource)
306
+ :last-modified (connection-last-modified resource)}))
307
+
300
308
(defn url-response
301
309
" Return a response for the supplied URL."
302
310
{:added " 1.2" }
You can’t perform that action at this time.
0 commit comments