Skip to content

Commit a5ade4b

Browse files
fix broken URL fetching
1 parent a733df7 commit a5ade4b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bootleg/file.clj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@
4343
(defmethod input-stream "https" [_ url] (url-input-stream url))
4444

4545
(defn path-relative [filename]
46-
(path-join context/*path* filename))
46+
(if (or (string/starts-with? filename "http://")
47+
(string/starts-with? filename "https://"))
48+
filename
49+
(path-join context/*path* filename)))
4750

4851
(defn relativise
4952
"return the relative path that gets you from a working directory

0 commit comments

Comments
 (0)