Skip to content

Commit 8853262

Browse files
committed
Removed FAILONERROR
1 parent e9005c2 commit 8853262

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/RocketCode/Shopify/api.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,7 @@ public function call($userData = array(), $verifyData = TRUE)
218218

219219
// Send & accept JSON data
220220
$defaultHeaders = array();
221-
$defaultHeaders[] = 'Content-Type: application/json;';
222-
$defaultHeaders[] = 'charset=' . $request['CHARSET'] . ';';
221+
$defaultHeaders[] = 'Content-Type: application/json; charset=' . $request['CHARSET'] . ';';
223222
$defaultHeaders[] = 'Accept: application/json;';
224223
if (array_key_exists('ACCESS_TOKEN', $this->_API))
225224
{
@@ -247,7 +246,7 @@ public function call($userData = array(), $verifyData = TRUE)
247246
CURLOPT_CUSTOMREQUEST => strtoupper($request['METHOD']),
248247
CURLOPT_ENCODING => '',
249248
CURLOPT_USERAGENT => 'RocketCode Shopify API Wrapper',
250-
CURLOPT_FAILONERROR => TRUE
249+
CURLOPT_FAILONERROR => FALSE
251250
);
252251

253252
// Checks if DATA is being sent

0 commit comments

Comments
 (0)