elixir-sparkpost icon indicating copy to clipboard operation
elixir-sparkpost copied to clipboard

SparkPost.Endpoint.decode_response_body/1 uses decoding as atoms

Open begedin opened this issue 5 years ago • 0 comments

Creating this ticket so I can remove a TODO from code.

Poison.encode(keys: :atoms) is potentially unsafe for open ended structures such as metadata and substitution_data, as atoms are not garbage collected and are a definite (albeit often slow) memory leak. Substitution data and metadata should be decoded into a string keys map.

begedin avatar Oct 12 '20 06:10 begedin