Skip to content

Commit

Permalink
Revert "Make json-params-request to accept all options"
Browse files Browse the repository at this point in the history
This reverts commit 4e05a27.
  • Loading branch information
drake.aren committed Oct 13, 2020
1 parent b18e0f5 commit d95c52c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ring/middleware/json.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d95c52c

Please sign in to comment.