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 "
22 :description " Ring core libraries."
33 :url " https://github.com/ring-clojure/ring"
44 :scm {:dir " .." }
Original file line number Diff line number Diff line change 297297 :content-length (connection-content-length conn)
298298 :last-modified (connection-last-modified conn)})))
299299
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+
300308(defn url-response
301309 " Return a response for the supplied URL."
302310 {:added " 1.2" }
You can’t perform that action at this time.
0 commit comments