File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
lib/OpenCloud/Common/Http Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1818namespace OpenCloud \Common \Http ;
1919
2020use Guzzle \Http \Client as GuzzleClient ;
21- use Guzzle \ Http \ Curl \ CurlVersion ;
21+ use OpenCloud \ Version ;
2222use OpenCloud \Common \Exceptions \UnsupportedVersionError ;
2323
2424/**
2727 */
2828class Client extends GuzzleClient
2929{
30- const VERSION = '1.9.0 ' ;
3130 const MINIMUM_PHP_VERSION = '5.3.0 ' ;
3231
3332 public function __construct ($ baseUrl = '' , $ config = null )
@@ -46,9 +45,10 @@ public function __construct($baseUrl = '', $config = null)
4645
4746 public function getDefaultUserAgent ()
4847 {
49- return 'OpenCloud/ ' . self ::VERSION
50- . ' cURL/ ' . CurlVersion::getInstance ()->get ('version ' )
51- . ' PHP/ ' . PHP_VERSION ;
48+ return 'OpenCloud/ ' . Version::getVersion ()
49+ . ' Guzzle/ ' . Version::getGuzzleVersion ()
50+ . ' cURL/ ' . Version::getCurlVersion ()
51+ . ' PHP/ ' . PHP_VERSION ;
5252 }
5353
5454 public function getUserAgent ()
You can’t perform that action at this time.
0 commit comments