- Added
:pretty
option to JSON ( Ian Eure )
- Worked around incompatibility with org.apache.catalina.connector.CoyoteInputStream. Should work fine in Immutant now. ( Roman Scherer )
- Do not serialize body if entire response is nil ( Justin Balthrop )
- Fallback to looking inside
:headers
if:content-type
is not defined at the root
wrap-format-response
encodes the body with the first format (:json
by default) when unable to find an encoder matching the request instead of returning 306 HTTP error code
- Added custom error handling
- Added a
ring.middleware.format
namespace for simplified usage - Added a
:formats
param to customize which formats are handled - Use
clojure.tools.reader
for safer reading of edn - Added
:json-kw
and:yaml-kw
formats and wrapper to have keywords keys in:params
and:body-params
- Use readers in
*data-readers*
for edn ( Roman Scherer )
- Better formatted doctrings ( Anthony Grimes )
- Allow empty request body as per Ring Spec ( Roman Scherer )
- Fixed bug with long request bodies when guessing character encoding
- Fixed bug with character encoding guessing
- Tries to guess character encoding when unspecified
- Easier custom json types ( Jeremy W. Sherman )
- Do not try to merge vectors into :params ( Ian Eure )
- Chooses format response according to the sort order defined by Accept header ( Jani Rahkola )
- Properly lowercases header according to Ring spec ( Luke Amdor )
- Safely handles code for clojure format ( Paul M Bauer )
- safely handle empty request bodies ( Philip Aston )