diff --git a/lib/CurlRequest.php b/lib/CurlRequest.php index eb59477..f9cd242 100644 --- a/lib/CurlRequest.php +++ b/lib/CurlRequest.php @@ -47,6 +47,8 @@ protected static function init($url, $httpHeaders = array()) //Return the transfer as a string curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_USERAGENT, 'PHPClassic/PHPShopify'); + $headers = array(); foreach ($httpHeaders as $key => $value) { $headers[] = "$key: $value"; @@ -160,4 +162,4 @@ protected static function processRequest($ch) return $output; } -} \ No newline at end of file +}