Skip to content

Commit 615dcf7

Browse files
Merge pull request #2 from ianbishop/master
Add three-arity middleware handler
2 parents ecc3ec3 + 32d19b7 commit 615dcf7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/co/deps/ring_etag_middleware.clj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,10 @@
9090
([handler]
9191
(wrap-file-etag handler {}))
9292
([handler {:keys [extended-attributes?] :as options}]
93-
(fn [req]
94-
(add-file-etag (handler req) extended-attributes?))))
93+
(fn
94+
([req]
95+
(add-file-etag (handler req) extended-attributes?))
96+
([req respond raise]
97+
(handler req
98+
#(respond (add-file-etag % extended-attributes?))
99+
raise)))))

0 commit comments

Comments
 (0)