#79

Session wrapper does not update the cookie after session expiry date is changed.

(ns ring-session-test.core) (use 'ring.middleware.session) (defn handler [{session :session uri :uri}] (let [res {:status 200 :headers {"Content-Type" "text/plain"} ...

  • Opened by zby Feb 2, 2013
  • 1 comment
#81

The middleware wrap-head makes Content-Length always be 0

Because it sets :body to nil, and :body is used to set Content-Length.

  • Opened by aviflax Jun 24, 2013
  • 4 comments
#83

Exception in thread "main" java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest, compiling:(ring/middleware/multipart_params.clj:39:5)

In ring-core 1.2.1, I'm getting this explosion: Exception in thread "main" java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest, compiling:(ring/middleware/multipart_params.clj:39:5) ...

#82

*read-eval* false?

At https://github.com/mmcgrana/ring/blob/master/ring-core/src/ring/middleware/session/cookie.clj#L92 should there be a (binding [read-eval false] ) ? Otherwise, it seems -- suppose some other vulnerability ...

  • Opened by txrev319 Oct 31, 2013
  • 2 comments
#43

wrap-keyword-params doesn't work with wrap-multipart-params

It seems that the keyword-params middleware doesn't accept a map with keys that are keywords instead of strings. Multipart-params produces such a map on file upload. The input's name is passed ...

#42

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 ...

  • Opened by jarrett Nov 17, 2011
  • 4 comments
#41

NPE when attempting to use cookie session store

In trying to use the CookieStore session store using non-default attributes, I encountered the following stack trace: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: ...

#48

Add :max-threads option to the Jetty adapter

In some cloud environments, such as Heroku, the number of threads available to a process is limited. The Jetty adapter should therefore support a :max-threads option for limiting the number of threads ...

#50

Upgrade clj-stacktrace to 0.2.4

The ring-devel leiningen project includes a dependency on clj-stacktrace 0.2.2. Unfortunately, that version of clj-stacktrace is not compatible with recent versions of swank-closure (1.3.4 or newer). The ...

  • Opened by artdent Jan 22, 2012
  • 1 comment
#51

Cookie parsing needs to deal with nil return value from url-decode

The decision to allow url-decode to return nil for improperly encoded strings (instead of throwing an exception) now means that cookie handling needs to accomodate this newly-endorsed return value. Frankly, ...

  • Opened by cch1 Feb 3, 2012