Skip to content

Commit

Permalink
Use JSON.generate instead of .dump in request middleware (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
Be-ngt-oH authored Apr 14, 2021
1 parent 704fd50 commit 6e10251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/faraday_middleware/request/encode_json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def call(env)
end

def encode(data)
::JSON.dump data
::JSON.generate data
end

def match_content_type(env)
Expand Down

0 comments on commit 6e10251

Please sign in to comment.