Skip to content
This repository was archived by the owner on Aug 6, 2022. It is now read-only.

Commit 0a4540d

Browse files
committed
Removed proxy configuration
1 parent 9c25abf commit 0a4540d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/Constant/Service.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ protected function processRequest($data)
3333
{
3434
$this->_headers['Content-Type'] = 'application/json';
3535
try {
36-
$client = new \GuzzleHttp\Client([
37-
'defaults' => [
38-
'proxy' => 'localhost:8888'
39-
]
40-
]);
36+
$client = new \GuzzleHttp\Client();
4137

4238
// create a log channel
4339
$log = new Logger(__CLASS__);
@@ -49,8 +45,7 @@ protected function processRequest($data)
4945
$response = $client->post($this->uri, [
5046
'auth' => [$this->username, $this->password],
5147
'headers' => $this->_headers,
52-
'body' => $data,
53-
'verify' => false
48+
'body' => $data
5449
]);
5550

5651
return json_decode($response->getBody());
@@ -61,4 +56,4 @@ protected function processRequest($data)
6156
}
6257
}
6358
}
64-
}
59+
}

0 commit comments

Comments
 (0)