ring icon indicating copy to clipboard operation
ring copied to clipboard

Clojure HTTP server abstraction

Results 61 ring issues
Sort by recently updated
recently updated
newest added

Setting `:headers` is mandatory in [the Ring SPEC](https://github.com/ring-clojure/ring/blob/master/SPEC) for responses. As it is effectively the same as not setting the `:headers` at all (which is both less code & faster),...

spec

I've tried using both jetty and httpkit, in both cases my request maps contain `nil` values for the optional keys `:body` and `:query-string`; this is not compliant with the [`:ring/request`](https://github.com/ring-clojure/ring-spec/blob/master/src/ring/core/spec.clj#L115)...

bug

Hi there, We are getting an NPE thrown from the `ring.middleware.multipart-params` and I don't know where to start looking to track the problem down. Any help would be appreciated. This...

bug

```clojure (def app-stateless (-> handler (wrap-keyword-params {:parse-namespaces? true}) ;(wrap-nested-params) (wrap-params) (add-headers) (wrap-restful-format))) ``` ```clojure (-> (peridot/session core/app-stateless) (peridot/content-type "application/edn") (peridot/request "/authentication" :request-method :post :body (pr-str {:action "sign-up" :user/email "[email protected]" :user/password...

enhancement

I struggled to setup ring for development and production, as there are so many options. I tried to compile what I found into two pages https://github.com/laliluna/ring/wiki/Setup-for-development and https://github.com/laliluna/ring/wiki/Setup-for-production In addition...

docs

Is there any way to limit max upload size? If so could you provide an example please?

enhancement

The multipart middleware would throw an exception when it encountered an invalid filename. For most apps that exception would be caught by the default exception handler and result in a...

Writing apps that mostly depending just on `ring/ring-core`, but using the `ring.middleware.multipart-params` fails for the missing servlet api. At least `org.apache.commons.fileupload.FileUploadBase` references to Servlet stuff. Could there be a servlet-free...

enhancement

Instead of just complaining, I'd figure I make a pr :-)

waiting on dev

Commons FileUpload allows limiting uploaded file/request size (throwing exception when the size is exceeded) by counting the bytes received over the wire. `ring.middleware.multipart-params` now accepts two more options: - max-request-size...

enhancement