@@ -185,7 +185,7 @@ public function serviceRegister(AgentServiceRegistration $agentServiceRegistrati
185185 */
186186 public function serviceDeregister ($ serviceID )
187187 {
188- $ r = new HttpRequest ('put ' , sprintf ('v1/agent/service/deregister/%s ' , rawurlencode ( $ serviceID) ), $ this ->_Config );
188+ $ r = new HttpRequest ('put ' , sprintf ('v1/agent/service/deregister/%s ' , $ serviceID ), $ this ->_Config );
189189
190190 list ($ _ , $ _ , $ err ) = $ this ->requireOK ($ this ->doRequest ($ r ));
191191
@@ -238,7 +238,7 @@ public function failTTL($checkID, $note)
238238 */
239239 public function updateTTL ($ checkID , $ output , $ status )
240240 {
241- $ r = new HttpRequest ('put ' , sprintf ('v1/agent/check/update/%s ' , rawurlencode ( $ checkID) ), $ this ->_Config );
241+ $ r = new HttpRequest ('put ' , sprintf ('v1/agent/check/update/%s ' , $ checkID ), $ this ->_Config );
242242 $ r ->body = (new AgentCheckUpdate (['Output ' => $ output , 'Status ' => $ status ]));
243243
244244 list ($ _ , $ _ , $ err ) = $ this ->requireOK ($ this ->doRequest ($ r ));
@@ -266,7 +266,7 @@ public function checkRegister(AgentCheckRegistration $agentCheckRegistration)
266266 */
267267 public function checkDeregister ($ checkID )
268268 {
269- $ r = new HttpRequest ('put ' , sprintf ('v1/agent/check/deregister/%s ' , rawurlencode ( $ checkID) ), $ this ->_Config );
269+ $ r = new HttpRequest ('put ' , sprintf ('v1/agent/check/deregister/%s ' , $ checkID ), $ this ->_Config );
270270
271271 list ($ _ , $ _ , $ err ) = $ this ->requireOK ($ this ->doRequest ($ r ));
272272
@@ -280,7 +280,7 @@ public function checkDeregister($checkID)
280280 */
281281 public function join ($ addr , $ wan = false )
282282 {
283- $ r = new HttpRequest ('put ' , sprintf ('v1/agent/join/%s ' , rawurlencode ( $ addr) ), $ this ->_Config );
283+ $ r = new HttpRequest ('put ' , sprintf ('v1/agent/join/%s ' , $ addr ), $ this ->_Config );
284284 if ($ wan )
285285 $ r ->params ->set ('wan ' , 1 );
286286
@@ -295,7 +295,7 @@ public function join($addr, $wan = false)
295295 */
296296 public function forceLeave ($ node )
297297 {
298- $ r = new HttpRequest ('put ' , sprintf ('v1/agent/force-leave/%s ' , rawurlencode ( $ node) ), $ this ->_Config );
298+ $ r = new HttpRequest ('put ' , sprintf ('v1/agent/force-leave/%s ' , $ node ), $ this ->_Config );
299299
300300 list ($ _ , $ _ , $ err ) = $ this ->requireOK ($ this ->doRequest ($ r ));
301301
@@ -309,7 +309,7 @@ public function forceLeave($node)
309309 */
310310 public function enableServiceMaintenance ($ serviceID , $ reason = '' )
311311 {
312- $ r = new HttpRequest ('put ' , sprintf ('v1/agent/service/maintenance/%s ' , rawurlencode ( $ serviceID) ), $ this ->_Config );
312+ $ r = new HttpRequest ('put ' , sprintf ('v1/agent/service/maintenance/%s ' , $ serviceID ), $ this ->_Config );
313313 $ r ->params ->set ('enable ' , 'true ' );
314314 $ r ->params ->set ('reason ' , $ reason );
315315
@@ -324,7 +324,7 @@ public function enableServiceMaintenance($serviceID, $reason = '')
324324 */
325325 public function disableServiceMaintenance ($ serviceID )
326326 {
327- $ r = new HttpRequest ('put ' , sprintf ('v1/agent/service/maintenance/%s ' , rawurlencode ( $ serviceID) ), $ this ->_Config );
327+ $ r = new HttpRequest ('put ' , sprintf ('v1/agent/service/maintenance/%s ' , $ serviceID ), $ this ->_Config );
328328 $ r ->params ->set ('enable ' , 'false ' );
329329
330330 list ($ _ , $ _ , $ err ) = $ this ->requireOK ($ this ->doRequest ($ r ));
@@ -369,7 +369,7 @@ public function disableNodeMaintenance()
369369 */
370370 public function checkPass ($ checkID , $ note = '' )
371371 {
372- $ r = new HttpRequest ('get ' , sprintf ('v1/agent/check/pass/%s ' , rawurlencode ( $ checkID) ), $ this ->_Config );
372+ $ r = new HttpRequest ('get ' , sprintf ('v1/agent/check/pass/%s ' , $ checkID ), $ this ->_Config );
373373 $ r ->params ->set ('note ' , $ note );
374374
375375 list ($ _ , $ _ , $ err ) = $ this ->requireOK ($ this ->doRequest ($ r ));
@@ -386,7 +386,7 @@ public function checkPass($checkID, $note = '')
386386 */
387387 public function checkWarn ($ checkID , $ note = '' )
388388 {
389- $ r = new HttpRequest ('get ' , sprintf ('v1/agent/check/warn/%s ' , rawurlencode ( $ checkID) ), $ this ->_Config );
389+ $ r = new HttpRequest ('get ' , sprintf ('v1/agent/check/warn/%s ' , $ checkID ), $ this ->_Config );
390390 $ r ->params ->set ('note ' , $ note );
391391
392392 list ($ _ , $ _ , $ err ) = $ this ->requireOK ($ this ->doRequest ($ r ));
@@ -403,7 +403,7 @@ public function checkWarn($checkID, $note = '')
403403 */
404404 public function checkFail ($ checkID , $ note = '' )
405405 {
406- $ r = new HttpRequest ('get ' , sprintf ('v1/agent/check/fail/%s ' , rawurlencode ( $ checkID) ), $ this ->_Config );
406+ $ r = new HttpRequest ('get ' , sprintf ('v1/agent/check/fail/%s ' , $ checkID ), $ this ->_Config );
407407 $ r ->params ->set ('note ' , $ note );
408408
409409 list ($ _ , $ _ , $ err ) = $ this ->requireOK ($ this ->doRequest ($ r ));
0 commit comments