@@ -185,7 +185,7 @@ public function serviceRegister(AgentServiceRegistration $agentServiceRegistrati
185
185
*/
186
186
public function serviceDeregister ($ serviceID )
187
187
{
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 );
189
189
190
190
list ($ _ , $ _ , $ err ) = $ this ->requireOK ($ this ->doRequest ($ r ));
191
191
@@ -238,7 +238,7 @@ public function failTTL($checkID, $note)
238
238
*/
239
239
public function updateTTL ($ checkID , $ output , $ status )
240
240
{
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 );
242
242
$ r ->body = (new AgentCheckUpdate (['Output ' => $ output , 'Status ' => $ status ]));
243
243
244
244
list ($ _ , $ _ , $ err ) = $ this ->requireOK ($ this ->doRequest ($ r ));
@@ -266,7 +266,7 @@ public function checkRegister(AgentCheckRegistration $agentCheckRegistration)
266
266
*/
267
267
public function checkDeregister ($ checkID )
268
268
{
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 );
270
270
271
271
list ($ _ , $ _ , $ err ) = $ this ->requireOK ($ this ->doRequest ($ r ));
272
272
@@ -280,7 +280,7 @@ public function checkDeregister($checkID)
280
280
*/
281
281
public function join ($ addr , $ wan = false )
282
282
{
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 );
284
284
if ($ wan )
285
285
$ r ->params ->set ('wan ' , 1 );
286
286
@@ -295,7 +295,7 @@ public function join($addr, $wan = false)
295
295
*/
296
296
public function forceLeave ($ node )
297
297
{
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 );
299
299
300
300
list ($ _ , $ _ , $ err ) = $ this ->requireOK ($ this ->doRequest ($ r ));
301
301
@@ -309,7 +309,7 @@ public function forceLeave($node)
309
309
*/
310
310
public function enableServiceMaintenance ($ serviceID , $ reason = '' )
311
311
{
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 );
313
313
$ r ->params ->set ('enable ' , 'true ' );
314
314
$ r ->params ->set ('reason ' , $ reason );
315
315
@@ -324,7 +324,7 @@ public function enableServiceMaintenance($serviceID, $reason = '')
324
324
*/
325
325
public function disableServiceMaintenance ($ serviceID )
326
326
{
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 );
328
328
$ r ->params ->set ('enable ' , 'false ' );
329
329
330
330
list ($ _ , $ _ , $ err ) = $ this ->requireOK ($ this ->doRequest ($ r ));
@@ -369,7 +369,7 @@ public function disableNodeMaintenance()
369
369
*/
370
370
public function checkPass ($ checkID , $ note = '' )
371
371
{
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 );
373
373
$ r ->params ->set ('note ' , $ note );
374
374
375
375
list ($ _ , $ _ , $ err ) = $ this ->requireOK ($ this ->doRequest ($ r ));
@@ -386,7 +386,7 @@ public function checkPass($checkID, $note = '')
386
386
*/
387
387
public function checkWarn ($ checkID , $ note = '' )
388
388
{
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 );
390
390
$ r ->params ->set ('note ' , $ note );
391
391
392
392
list ($ _ , $ _ , $ err ) = $ this ->requireOK ($ this ->doRequest ($ r ));
@@ -403,7 +403,7 @@ public function checkWarn($checkID, $note = '')
403
403
*/
404
404
public function checkFail ($ checkID , $ note = '' )
405
405
{
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 );
407
407
$ r ->params ->set ('note ' , $ note );
408
408
409
409
list ($ _ , $ _ , $ err ) = $ this ->requireOK ($ this ->doRequest ($ r ));
0 commit comments