Skip to content

Commit 4cb51b1

Browse files
author
Michael Christopher
committed
Renamed README and fixed Http layer
1 parent 5ec3927 commit 4cb51b1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README renamed to README.md

File renamed without changes.

Services/Zencoder/Http.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public function __call($name, $args) {
3333
CURLOPT_POSTFIELDS => NULL,
3434
CURLOPT_CONNECTTIMEOUT => 30,
3535
CURLOPT_TIMEOUT => 30,
36-
CURLOPT_SSL_VERIFYPEER => 0,
37-
CURLOPT_SSL_VERIFYHOST => 0
36+
CURLOPT_SSL_VERIFYPEER => 0, #1
37+
CURLOPT_SSL_VERIFYHOST => 0 #2
3838
);
3939

4040
foreach ($req_headers as $k => $v) $opts[CURLOPT_HTTPHEADER][] = "$k: $v";
@@ -95,7 +95,7 @@ public function __call($name, $args) {
9595
} else throw new Services_Zencoder_HttpException(curl_error($curl));
9696
} else throw new Services_Zencoder_HttpException(curl_error($curl));
9797
} else throw new Services_Zencoder_HttpException('Unable to initialize cURL');
98-
} catch (ErrorException $e) {
98+
} catch (Services_Zencoder_HttpException $e) {
9999
if (is_resource($curl)) curl_close($curl);
100100
if (isset($buf) && is_resource($buf)) fclose($buf);
101101
throw $e;

0 commit comments

Comments
 (0)