Skip to content

Commit 8b835af

Browse files
committed
Version 1.5
1 parent 6aa5f7c commit 8b835af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Zencoder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
*/
99
define('ZENCODER_LIBRARY_NAME', "ZencoderPHP");
10-
define('ZENCODER_LIBRARY_VERSION', "1.4");
10+
define('ZENCODER_LIBRARY_VERSION', "1.5");
1111

1212
// Add JSON functions for PHP < 5.2.0
1313
if(!function_exists('json_encode')) {
@@ -177,6 +177,7 @@ class ZencoderCURL {
177177
CURLOPT_RETURNTRANSFER => 1, // Return content of the url
178178
CURLOPT_HEADER => 0, // Don't return the header in result
179179
CURLOPT_HTTPHEADER => array("Content-Type: application/json", "Accept: application/json"),
180+
CURLOPT_USERAGENT => ZENCODER_LIBRARY_NAME + " " + ZENCODER_LIBRARY_VERSION,
180181
CURLOPT_CONNECTTIMEOUT => 0, // Time in seconds to timeout send request. 0 is no timeout.
181182
CURLOPT_FOLLOWLOCATION => 1, // Follow redirects.
182183
CURLOPT_SSL_VERIFYPEER => 1,

0 commit comments

Comments
 (0)