fix: consul catalog register method GET => PUT

catalog register 的请求方式应该是 PUT
https://www.consul.io/api/catalog.html#register-entity
This commit is contained in:
daodao97 2020-04-05 14:24:05 +08:00 committed by GitHub
parent 51ae5fd088
commit 90241ececa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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