From d95c52c66c4869466e7475fa3f79c80c68ae4c29 Mon Sep 17 00:00:00 2001 From: "drake.aren" Date: Wed, 14 Oct 2020 00:33:26 +0600 Subject: [PATCH] Revert "Make json-params-request to accept all options" This reverts commit 4e05a276510affb41ba860a404f0858816accf72. --- src/ring/middleware/json.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ring/middleware/json.clj b/src/ring/middleware/json.clj index e457822..195ff8e 100644 --- a/src/ring/middleware/json.clj +++ b/src/ring/middleware/json.clj @@ -77,7 +77,7 @@ JSON is malformed. See: wrap-json-params." [request options] (if-let [[valid? json] (read-json request options)] - (when valid? (assoc-json-params request json options)) + (when valid? (assoc-json-params request json)) request)) (defn wrap-json-params