diff --git a/QuickChart.php b/QuickChart.php index 2cffac1..fa5d0ee 100644 --- a/QuickChart.php +++ b/QuickChart.php @@ -1,7 +1,5 @@ protocol = isset($options['protocol']) ? $options['protocol'] : 'https'; $this->host = isset($options['host']) ? $options['host'] : 'quickchart.io'; @@ -111,7 +111,7 @@ function getShortUrl() { curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($postData)); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type:application/json', - "User-Agent:$USER_AGENT", + "User-Agent:" . QuickChart::USER_AGENT, )); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($ch);