Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make sure to delete :pretty option so it doesn't persist when not needed

  • Loading branch information...
commit 83d3a99daf1ddf6c52f92a105fe101299b10af07 1 parent 6ea70fd
@kornypoet kornypoet authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/goliath/chimp/rack/formatters/json.rb
View
2  lib/goliath/chimp/rack/formatters/json.rb
@@ -12,7 +12,7 @@ class JSON
include Goliath::Rack::AsyncMiddleware
def post_process(env, status, headers, body)
- pretty = !!env['params']['pretty'] rescue false
+ pretty = !!env['params'].delete('pretty') rescue false
if json_response? headers
body = MultiJson.dump(body, pretty: pretty)
end
Please sign in to comment.
Something went wrong with that request. Please try again.