lib/goliath/rack/formatters/json.rb in goliath-0.9.4 vs lib/goliath/rack/formatters/json.rb in goliath-1.0.0.beta.1

- old
+ new

@@ -11,10 +11,10 @@ class JSON include AsyncMiddleware def post_process(env, status, headers, body) if json_response?(headers) - body = [MultiJson.encode(body)] + body = [MultiJson.dump(body)] end [status, headers, body] end def json_response?(headers)