diff --git a/modules/reitit-core/src/reitit/impl.cljc b/modules/reitit-core/src/reitit/impl.cljc index 9df30456..9795cf11 100644 --- a/modules/reitit-core/src/reitit/impl.cljc +++ b/modules/reitit-core/src/reitit/impl.cljc @@ -166,7 +166,7 @@ (some-> s #?(:clj (URLEncoder/encode "UTF-8") :cljs (js/encodeURIComponent)) - (.replace "+" "%20"))) + #?(:clj (.replace "+" "%20")))) (defn url-decode [s] (some-> s #?(:clj (URLDecoder/decode "UTF-8") @@ -201,9 +201,8 @@ (defn path-params "shallow transform of the path-param values into strings" [params] - (persistent! - (reduce-kv - (fn [m k v] - (assoc! m k (url-encode (into-string v)))) - (transient {}) - params))) + (reduce-kv + (fn [m k v] + (assoc m k (url-encode (into-string v)))) + {} + params))