Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
frenchy64 committed Jun 18, 2024
1 parent 062fbb3 commit 4cb59b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compojure/api/middleware.clj
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@

(defn- v1->v2 [options]
(let [{:keys [format] :as options} (api-middleware-options-v1 options)]
(-> m/default-options
(-> options
(assoc :formats (when (some? format)
(update m/default-options :formats into (format->formats format))))
(dissoc :format))))
Expand Down

0 comments on commit 4cb59b4

Please sign in to comment.