diff options
author | Hubert Chathi <hubert@uhoreg.ca> | 2020-07-26 23:07:49 -0400 |
---|---|---|
committer | Hubert Chathi <hubert@uhoreg.ca> | 2020-07-26 23:07:49 -0400 |
commit | 7b347e840e08857b9ab3e00902984085e9a517bc (patch) | |
tree | 08b1cda583a661da67787bfb68d88baffa3a1f9c /lib/polyjuice/client/endpoint.ex | |
parent | edit changelog and bump version (diff) |
use Jason instead of Poison
Diffstat (limited to 'lib/polyjuice/client/endpoint.ex')
-rw-r--r-- | lib/polyjuice/client/endpoint.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/polyjuice/client/endpoint.ex b/lib/polyjuice/client/endpoint.ex index a328ea9..b75ee6c 100644 --- a/lib/polyjuice/client/endpoint.ex +++ b/lib/polyjuice/client/endpoint.ex @@ -88,7 +88,7 @@ defmodule Polyjuice.Client.Endpoint do def parse_response(%{} = endpoint_args, status_code, headers, body) when is_integer(status_code) and is_list(headers) and is_binary(body) do # FIXME: check if content type is "application/json" - with {:ok, json} <- Poison.decode(body) do + with {:ok, json} <- Jason.decode(body) do case status_code do 200 -> Polyjuice.Client.Endpoint.BodyParser.parse(endpoint_args, json) |