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 24429f7

Browse filesBrowse files
author
Michael Christopher
committed
Version 1.6
1 parent 06eff54 commit 24429f7
Copy full SHA for 24429f7

File tree

2 files changed

+4
-3
lines changed
Filter options

2 files changed

+4
-3
lines changed

‎README.markdown

Copy file name to clipboardExpand all lines: README.markdown
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ Your [notifications page](https://app.zencoder.com/notifications) will come in h
195195

196196
VERSIONS
197197
---------
198+
Version 1.6 - 2011-10-24 Fixed issue with user agents in cURL
198199
Version 1.4 - 2011-10-06 Fixed error with adding api_key to URL
199200
Version 1.3 - 2011-09-21 Fixed bundled SSL certification chain and made catch_and_parse() static
200201
Version 1.2 - 2011-08-06 Added fixes for PHP Notices and SSL handling

‎Zencoder.php

Copy file name to clipboardExpand all lines: Zencoder.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
/*
33
44
Zencoder API PHP Library
5-
Version: 1.2
5+
Version: 1.6
66
See the README file for info on how to use this library.
77
88
*/
99
define('ZENCODER_LIBRARY_NAME', "ZencoderPHP");
10-
define('ZENCODER_LIBRARY_VERSION', "1.5");
10+
define('ZENCODER_LIBRARY_VERSION', "1.6");
1111

1212
// Add JSON functions for PHP < 5.2.0
1313
if(!function_exists('json_encode')) {
@@ -177,7 +177,6 @@ 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,
181180
CURLOPT_CONNECTTIMEOUT => 0, // Time in seconds to timeout send request. 0 is no timeout.
182181
CURLOPT_FOLLOWLOCATION => 1, // Follow redirects.
183182
CURLOPT_SSL_VERIFYPEER => 1,
@@ -200,6 +199,7 @@ function ZencoderCURL($url, $json, $options = array()) {
200199
// Add library details to request
201200
$this->options[CURLOPT_HTTPHEADER][] = "Zencoder-Library-Name: ".ZENCODER_LIBRARY_NAME;
202201
$this->options[CURLOPT_HTTPHEADER][] = "Zencoder-Library-Version: ".ZENCODER_LIBRARY_VERSION;
202+
$this->options[CURLOPT_USERAGENT] = ZENCODER_LIBRARY_NAME . " " . ZENCODER_LIBRARY_VERSION;
203203

204204
// If posting data
205205
if($json) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.