We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the handler for files is wrapped with (wrap-not-modified).
the resource handler does not have this middleware call. It is not logical that one has, and the other has not.
I propose to ad it to the resource handler.
The text was updated successfully, but these errors were encountered:
this is how resourcesmaybe should be written:
(defrecord ResourcesMaybe [options] bidi/Matched (resolve-handler [this m] (let [path (url-decode (:remainder m))] (when (not-empty path) (when-let [res (io/resource (str (:prefix options) path))] (assoc (dissoc m :remainder) :handler (-> (fn [req] (resource-response (str (:prefix options) path))) (wrap-content-type options) (wrap-not-modified) ; awb99 hack )))))) (unresolve-handler [this m] (when (= this (:handler m)) "")))
Sorry, something went wrong.
No branches or pull requests
the handler for files is wrapped with (wrap-not-modified).
the resource handler does not have this middleware call.
It is not logical that one has, and the other has not.
I propose to ad it to the resource handler.
The text was updated successfully, but these errors were encountered: