Skip to content

Commit 4e0f21f

Browse files
committed
pretty generate JSON for the api server
1 parent 5bcb183 commit 4e0f21f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/zendesk_api/server/helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def set_response(response)
9191
#{map_headers(response[:headers])}
9292
9393
94-
#{CodeRay.scan(MultiJson.dump(response[:body], :pretty => true), :json).span}
94+
#{CodeRay.scan(JSON.pretty_generate(response[:body]), :json).span}
9595
END
9696

9797
@user_response_hash = { :status => response[:status], :headers => response[:headers], :body => response[:body] }

0 commit comments

Comments
 (0)