Skip to content

Commit

Permalink
Merge pull request #2 from ianbishop/master
Browse files Browse the repository at this point in the history
Add three-arity middleware handler
  • Loading branch information
danielcompton authored Oct 16, 2019
2 parents ecc3ec3 + 32d19b7 commit 615dcf7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/co/deps/ring_etag_middleware.clj
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,10 @@
([handler]
(wrap-file-etag handler {}))
([handler {:keys [extended-attributes?] :as options}]
(fn [req]
(add-file-etag (handler req) extended-attributes?))))
(fn
([req]
(add-file-etag (handler req) extended-attributes?))
([req respond raise]
(handler req
#(respond (add-file-etag % extended-attributes?))
raise)))))

0 comments on commit 615dcf7

Please sign in to comment.