Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8b835af

Browse filesBrowse files
committed
Version 1.5
1 parent 6aa5f7c commit 8b835af
Copy full SHA for 8b835af

File tree

1 file changed

+2
-1
lines changed
Filter options

1 file changed

+2
-1
lines changed

‎Zencoder.php

Copy file name to clipboardExpand all lines: Zencoder.php
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.