Closed joelittlejohn closed 9 years ago
I'm using ring-json as an alternative now, but I thought I'd raise this to get some comments from elsewhere too.
I'm surprised that this was only reported 6 hours ago ... I've been meaning to report it for months.
I really think this just needs a little wrapper to ignore a nil body.
Closed by #40
When a response that has an empty body passes through wrap-json-response, the middleware parses a missing body to the json string
"null"
and produces a content length of 4 bytes.I would expect the middleware to leave this response alone.