Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

format and serialization directives in request take precedence

  • Loading branch information...
commit 691ce585d0a10cf9206da58213b3674449d3a2c6 1 parent 0b1a0df
@duck1123 authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/ciste/routes.clj
View
14 src/ciste/routes.clj
@@ -156,13 +156,13 @@ Returns either a (possibly modified) request map if successful, or nil."
(do
(log/debug "match found")
(let [format (or (keyword (:format (:params request)))
- format (:format request))
- serialization (or serialization (:serialization request))
- request (merge request
- {:format format
- :action action
- :serialization serialization})]
- (invoke-action request)))))
+ (:format request) format)
+ serialization (or serialization (:serialization request))
+ request (merge request
+ {:format format
+ :action action
+ :serialization serialization})]
+ (invoke-action request)))))
(defn resolve-routes
"Returns a handler fn that will match each route against
Please sign in to comment.
Something went wrong with that request. Please try again.