From 6a199c44c2ab8d52183185918367690add1047b7 Mon Sep 17 00:00:00 2001 From: jpitz Date: Tue, 12 May 2015 22:08:53 -0500 Subject: [PATCH] Fixed registerService to use PUT rather than GET --- 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); }; /**