Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
craigp committed Mar 24, 2017
1 parent 6746627 commit 394a513
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions lib/odata/http.ex
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ defmodule OData.HTTP do
opts = [timeout: :infinity, recv_timeout: :infinity, ssl: [versions: [:"tlsv1.2"]]]
case HTTPoison.get(url, headers, opts) do
{:ok, %HTTPoison.Response{status_code: 200, body: body}} ->
body = %{
"$id" => "1",
"Message" => "An error has occurred.",
"ErrorCode" => "KN00"
} |> Poison.encode!
Response.build(body)
{:ok, %HTTPoison.Response{status_code: code, body: body}} ->
{:error, {:status, code, body}}
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule OData.Mixfile do

def project do
[app: :odata,
version: "0.1.4",
version: "0.1.5",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
Expand Down

0 comments on commit 394a513

Please sign in to comment.