summaryrefslogtreecommitdiff
path: root/lib/polyjuice/client/endpoint.ex
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2020-07-26 23:07:49 -0400
committerHubert Chathi <hubert@uhoreg.ca>2020-07-26 23:07:49 -0400
commit7b347e840e08857b9ab3e00902984085e9a517bc (patch)
tree08b1cda583a661da67787bfb68d88baffa3a1f9c /lib/polyjuice/client/endpoint.ex
parentedit 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.ex2
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)