修改 User Agent
This commit is contained in:
parent
3b1dcd4314
commit
948f7a2805
@ -71,7 +71,7 @@ public function remote($func, $requests): array
|
|||||||
|
|
||||||
public function http(): PendingRequest
|
public function http(): PendingRequest
|
||||||
{
|
{
|
||||||
return Http::module($this->api_token, $this->url)->acceptJson()->timeout(5);
|
return Http::module($this->api_token, $this->url)->acceptJson()->timeout(5)->withUserAgent('LAECloud-Client');
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getResponse(Response $response): array
|
private function getResponse(Response $response): array
|
||||||
|
Loading…
Reference in New Issue
Block a user