Skip to content

Commit

Permalink
Merge pull request #160 from vimeo/head-support
Browse files Browse the repository at this point in the history
Allowing HEAD requests to be executed through the SDK.
  • Loading branch information
erunion authored Mar 7, 2018
2 parents 9559af9 + 70d354d commit e6a9b08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Vimeo/Vimeo.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public function request($url, $params = array(), $method = 'GET', $json_body = t
$curl_opts = array();
switch ($method) {
case 'GET':
case 'HEAD':
if (!empty($params)) {
$query_component = '?' . http_build_query($params, '', '&');
} else {
Expand Down

0 comments on commit e6a9b08

Please sign in to comment.