File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
src/cider/nrepl/middleware Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 56
56
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
57
57
58
58
(defprotocol URLCoercable
59
- (as-url [o]))
59
+ (as-url-string [o]))
60
60
61
61
(extend-protocol URLCoercable
62
62
Path
63
- (as-url [^Path p]
64
- (.. p normalize toUri toURL ))
63
+ (as-url-string [^Path p]
64
+ (.. p normalize toUri toString ))
65
65
66
66
File
67
- (as-url [^File f]
68
- (.. f getCanonicalFile toURI toURL ))
67
+ (as-url-string [^File f]
68
+ (.. f getCanonicalFile toURI toString ))
69
69
70
70
URI
71
- (as-url [^URI u]
72
- (.. u toURL ))
71
+ (as-url-string [^URI u]
72
+ (.toString u ))
73
73
74
74
URL
75
- (as-url [^URL u]
76
- u ))
75
+ (as-url-string [^URL u]
76
+ ( .toString u) ))
77
77
78
78
(defn external-body-response
79
79
" Partial response map having an external-body content-type referring to the given URL.
82
82
[value]
83
83
{:content-type [" message/external-body"
84
84
{" access-type" " URL"
85
- " URL" (.toString ^URL ( as-url value) )}]
85
+ " URL" (as-url-string value)}]
86
86
:body " " })
87
87
88
88
(defmulti content-type-response
You can’t perform that action at this time.
0 commit comments