From a1824f7a46405202425836e60745bf789217afd1 Mon Sep 17 00:00:00 2001 From: Jim Yeh Date: Tue, 2 Jun 2015 18:27:03 +0800 Subject: [PATCH] Fix error http request method of "consul.agent.registerService" --- lib/agent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/agent.js b/lib/agent.js index 34d7c0d..5b29ced 100644 --- a/lib/agent.js +++ b/lib/agent.js @@ -214,7 +214,7 @@ Agent.prototype.failCheck = function (checkId, opts, done) { Agent.prototype.registerService = function (service, opts, done) { if ('function' == typeof opts) done = opts, opts = null; - this.requestor.get('service/register', service, opts, done); + this.requestor.put('service/register', service, opts, done); }; /**