mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-30 02:37:58 +08:00
fix: consul catalog register method GET => PUT
catalog register 的请求方式应该是 PUT https://www.consul.io/api/catalog.html#register-entity
This commit is contained in:
parent
51ae5fd088
commit
90241ececa
@ -20,7 +20,7 @@ class Catalog extends Client implements CatalogInterface
|
||||
'body' => json_encode($node),
|
||||
];
|
||||
|
||||
return $this->request('GET', '/v1/catalog/register', $params);
|
||||
return $this->request('PUT', '/v1/catalog/register', $params);
|
||||
}
|
||||
|
||||
public function deregister($node): ConsulResponse
|
||||
|
Loading…
Reference in New Issue
Block a user