Apply 1 suggestion(s) to 1 file(s)

This commit is contained in:
Michael Crenshaw 2020-09-15 18:43:34 +00:00
parent 0b4a825917
commit e0b021fe5b

View File

@ -116,6 +116,7 @@
"dist" (.toFixed radius-nm (if rapid-api? 0 1))]
(map str)
(string/join "/"))
;; RapidAPI expects a trailing slash.
(if rapid-api? "/" ""))
headers (cond-> (if rapid-api?
{:x-rapidapi-key api-key :x-rapidapi-host (:host (c-url/url url)) :useQueryString true}