We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6ae0bd commit 54996d8Copy full SHA for 54996d8
src/RocketCode/Shopify/api.php
@@ -186,6 +186,7 @@ public function call($userData = array(), $verifyData = TRUE)
186
}
187
188
$defaults = array(
189
+ 'CHARSET' => 'UTF-8',
190
'METHOD' => 'GET',
191
'URL' => '/',
192
'HEADERS' => array(),
@@ -206,7 +207,7 @@ public function call($userData = array(), $verifyData = TRUE)
206
207
208
// Send & accept JSON data
209
$defaultHeaders = array();
- $defaultHeaders[] = 'Content-Type: application/json; charset=UTF-8';
210
+ $defaultHeaders[] = 'Content-Type: application/json; charset=' . $request['CHARSET'];
211
$defaultHeaders[] = 'Accept: application/json;';
212
if (array_key_exists('ACCESS_TOKEN', $this->_API))
213
{
0 commit comments