File tree 1 file changed +2
-1
lines changed
Filter options
1 file changed +2
-1
lines changed
Original file line number Diff line number Diff line change 7
7
8
8
*/
9
9
define ('ZENCODER_LIBRARY_NAME ' , "ZencoderPHP " );
10
- define ('ZENCODER_LIBRARY_VERSION ' , "1.4 " );
10
+ define ('ZENCODER_LIBRARY_VERSION ' , "1.5 " );
11
11
12
12
// Add JSON functions for PHP < 5.2.0
13
13
if (!function_exists ('json_encode ' )) {
@@ -177,6 +177,7 @@ class ZencoderCURL {
177
177
CURLOPT_RETURNTRANSFER => 1 , // Return content of the url
178
178
CURLOPT_HEADER => 0 , // Don't return the header in result
179
179
CURLOPT_HTTPHEADER => array ("Content-Type: application/json " , "Accept: application/json " ),
180
+ CURLOPT_USERAGENT => ZENCODER_LIBRARY_NAME + " " + ZENCODER_LIBRARY_VERSION ,
180
181
CURLOPT_CONNECTTIMEOUT => 0 , // Time in seconds to timeout send request. 0 is no timeout.
181
182
CURLOPT_FOLLOWLOCATION => 1 , // Follow redirects.
182
183
CURLOPT_SSL_VERIFYPEER => 1 ,
You can’t perform that action at this time.
0 commit comments