Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/gax/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ defmodule GoogleApi.Gax.MixProject do
defp deps() do
[
{:tesla, "~> 1.2"},
{:mime, "~> 1.0"},
{:poison, ">= 3.0.0 and < 5.0.0"},
{:mime, "~> 1.0 or ~> 2.0"},
{:poison, ">= 3.0.0 and < 7.0.0"},
{:ex_doc, "~> 0.16", only: :dev},
{:dialyxir, "~> 0.5", only: [:dev], runtime: false}
]
Expand Down
4 changes: 2 additions & 2 deletions clients/gax/test/gax/api_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ defmodule Gax.ApiTest do
mock(fn %{
method: :get,
url: "https://example.com/v1/stores/store-1/pets",
headers: [{"x-goog-api-client", ^api_client}]
headers: [{"x-goog-api-client", ^api_client}, {"accept-encoding", "gzip, deflate, identity"}]
} ->
%Tesla.Env{status: 200, body: @pets_json}
end)
Expand All @@ -61,7 +61,7 @@ defmodule Gax.ApiTest do
mock(fn %{
method: :get,
url: "https://example.com/v1/stores/store-1/pets",
headers: [{"x-goog-api-client", ^api_client}]
headers: [{"x-goog-api-client", ^api_client}, {"accept-encoding", "gzip, deflate, identity"}]
} ->
%Tesla.Env{status: 200, body: @pets_json_compressed,
headers: [{"content-encoding", "gzip"}]}
Expand Down