Skip to content

Commit

Permalink
possibly fix #9
Browse files Browse the repository at this point in the history
  • Loading branch information
simialbi committed Apr 27, 2020
1 parent 1f2178d commit fbc6e1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ protected function request($method, $url, $data = [])
if ($auth = $this->getAuth()) {
$headers['Authorization'] = $auth;
}
if ($method === 'head') {
$data = $headers;
$headers = [];
}

Yii::beginProfile($profile, __METHOD__);
/* @var $request \yii\httpclient\Request */
Expand Down

0 comments on commit fbc6e1f

Please sign in to comment.