From 20d622f0c81ea2d3fb6e2d27181fdb3865a8fcf3 Mon Sep 17 00:00:00 2001 From: elitymaciel Date: Mon, 22 Jul 2024 19:14:33 -0300 Subject: [PATCH] =?UTF-8?q?correcao,=20obrigat=C3=B3rio=20preencher=20User?= =?UTF-8?q?-Agent=20ao=20consultar=20cliente()->getAll()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Connection.php b/src/Connection.php index 8e196ae..ff76fd3 100755 --- a/src/Connection.php +++ b/src/Connection.php @@ -35,7 +35,7 @@ public function get($url, $option = false, $custom = false) curl_setopt($ch, CURLOPT_URL, $this->base_url . '/v3' . $url . $option); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_HEADER, FALSE); - + curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); if (empty($this->headers)) { $this->headers = array(