diff --git a/src/reitit/ring.cljc b/src/reitit/ring.cljc index 9a6b2019..9fe6aec6 100644 --- a/src/reitit/ring.cljc +++ b/src/reitit/ring.cljc @@ -28,7 +28,7 @@ (if handler (handler (cond-> (impl/fast-assoc request ::match match) - params (impl/fast-assoc :path-params params))))))) + (seq params) (impl/fast-assoc :path-params params))))))) ([request respond raise] (if-let [match (reitit/match-by-path router (:uri request))] (let [method (:request-method request :any) @@ -39,7 +39,7 @@ (if handler (handler (cond-> (impl/fast-assoc request ::match match) - params (impl/fast-assoc :path-params params)) + (seq params) (impl/fast-assoc :path-params params)) respond raise)))))) {::router router}))