Skip to content

Commit

Permalink
Merge pull request #3 from keroro520/bugfix/agent-service
Browse files Browse the repository at this point in the history
bugfix: correct the request args during service registration
  • Loading branch information
zolazhou authored Jul 2, 2016
2 parents bf5c56b + c186400 commit 66118fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/consul/agent/service.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule Consul.Agent.Service do

@spec register(map, Keyword.t) :: Endpoint.response
def register(%{"Name" => _} = body, opts \\ []) do
req_put([@agent, @service, @register], opts, Poison.encode!(body))
req_put([@agent, @service, @register], Poison.encode!(body), opts)
end

@spec deregister(binary, Keyword.t) :: Endpoint.response
Expand Down

0 comments on commit 66118fe

Please sign in to comment.