wrap-session middleware doesn't url-decode the cookie before using it.
I faced a weird bug today wherein the browser was sending the cookie string back to the server after url-encoding it and wrap-session tried decrypting the cookie without decoding the encoded cookie. I ...
The middleware wrap-head makes Content-Length always be 0
Because it sets :body to nil, and :body is used to set Content-Length.
Running additional WARs in addition to the app
I'm developping a webapp which has two components, one is a JSON REST service, the other the app itself. Both are written in Clojure with Compojure. When running the app with run-jetty, is there a ...
Cookies support clj-time intervals and dates
In ring.middleware.wrap-cookies: - The :max-age key should support JodaTime Intervals (via clj-time) - The :expires key should support JodaTime DateTimes and Java Dates Existing Ring 1.0 behaviour ...
Allow headers map/function for wrap-file?
Setting headers, particularly cache-control, can be very important when serving static files. This is especially true in an environment like Heroku, where you're relying on a server-side HTTP cache ...
Allow for manual configuration of Jetty server in ring-adapter-jetty
Hello Mark, Would you consider including this changeset? It allows for manual configuration of the Jetty server and is backwards compatible. I have a use case where I need to do some extensive customization ...
The body can be a Fn that takes one argument that is the java.io.OutputStream to write the entity. This allows for streaming, for example, in conjunction with Compojure, an image does not need to be written ...
does wrap-reload need to enforce a 1-arg function?
So this isn't strictly a ring fix, but aleph is pretty similar, and the only thing keeping one from using ring.middleware.reload with aleph is the arity of the function returned by wrap-reload (aleph ...
Allow custom options to wrap-file
I ran into trouble with a web app where index.md was served as an index file. I discovered two things. First, the options for file-response are hard-coded into wrap-file. Second, find-index-file accepts ...