From 4a5481dd8a23d75cc0f5c3080e0419b693c3da0c Mon Sep 17 00:00:00 2001 From: Steve Patz Date: Thu, 12 Oct 2017 22:37:07 -0400 Subject: [PATCH] Added cUrl option to fail on error --- lib/Client.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Client.php b/lib/Client.php index d3ca94d..8016b63 100644 --- a/lib/Client.php +++ b/lib/Client.php @@ -151,7 +151,8 @@ public function makeRequest($method, $url, $body = null, $headers = null, $retry CURLOPT_RETURNTRANSFER => true, CURLOPT_HEADER => 1, CURLOPT_CUSTOMREQUEST => strtoupper($method), - CURLOPT_SSL_VERIFYPEER => false, + CURLOPT_SSL_VERIFYPEER => false, + CURLOPT_FAILONERROR => false, ] + $this->curlOptions); if (isset($headers)) {