Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added multipart options to handler/site function

  • Loading branch information...
commit f10e9c15ab2dbb0378f2cbbe2029cf40c68488c7 1 parent b80d003
@weavejester authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/compojure/handler.clj
5 src/compojure/handler.clj
@@ -35,8 +35,9 @@
- wrap-keyword-params
A map of options may also be provided. These keys are provided:
- :session - a map of session middleware options"
+ :session - a map of session middleware options
+ :multipart - a map of multipart-params middleware options"
[routes & [opts]]
(-> (api routes)
- (wrap-multipart-params)
+ (with-opts wrap-multipart-params (:multipart opts))
(with-opts wrap-session (:session opts))))
Please sign in to comment.
Something went wrong with that request. Please try again.