published 1.0.0-SNAPSHOT in clojars has:
(defn with-etag
"Generates an etag header for a response body according to etag-generator and transforms response according to response-fn."
[handler {:keys [response-fn]
:or {response-fn (cached-response (create-hashed-etag-fn md5))}}]
(fn [request]
(let [old-etag (get-in request [:headers "if-none-match"])
response (handler request)]
(response-fn old-etag response))))
whereas github sources:
(defn with-etag
"Generates an etag header for a response body according to etag-generator and transforms response according to response-fn."
[handler {:keys [etag-generator response-fn]
:or {etag-generator create-uid
response-fn cached-response}}]
(fn [request]
(let [old-etag (get-in request [:headers "if-none-match"])
response (handler request)
new-etag (etag-generator response)]
(response-fn old-etag new-etag response))))
This caused quite a bit of confusion as I was looking at the source and getting behaviour at runtime.
Could you publish a new version to clojars please?
published 1.0.0-SNAPSHOT in clojars has:
whereas github sources:
This caused quite a bit of confusion as I was looking at the source and getting behaviour at runtime.
Could you publish a new version to clojars please?