Skip to content

Commit

Permalink
fix broken URL fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
retrogradeorbit committed Nov 9, 2019
1 parent a733df7 commit a5ade4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bootleg/file.clj
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@
(defmethod input-stream "https" [_ url] (url-input-stream url))

(defn path-relative [filename]
(path-join context/*path* filename))
(if (or (string/starts-with? filename "http://")
(string/starts-with? filename "https://"))
filename
(path-join context/*path* filename)))

(defn relativise
"return the relative path that gets you from a working directory
Expand Down

0 comments on commit a5ade4b

Please sign in to comment.