Skip to content

Commit

Permalink
Checking for request header before attempting to reference it
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Jul 15, 2016
1 parent 27c0e4e commit 6d784a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/HttpResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ public function __construct($response, array $curlInfo, $curlError)
$this->primaryPort = $curlInfo['primary_port'];
$this->localIP = $curlInfo['local_ip'];
$this->localPort = $curlInfo['local_port'];
$this->requestHeader = $curlInfo['request_header'];
if (isset($curlInfo['request_header']))
$this->requestHeader = $curlInfo['request_header'];

$this->curlError = $curlError;

Expand Down

0 comments on commit 6d784a5

Please sign in to comment.