Skip to content

Commit 6d784a5

Browse files
committed
Checking for request header before attempting to reference it
1 parent 27c0e4e commit 6d784a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/HttpResponse.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ public function __construct($response, array $curlInfo, $curlError)
121121
$this->primaryPort = $curlInfo['primary_port'];
122122
$this->localIP = $curlInfo['local_ip'];
123123
$this->localPort = $curlInfo['local_port'];
124-
$this->requestHeader = $curlInfo['request_header'];
124+
if (isset($curlInfo['request_header']))
125+
$this->requestHeader = $curlInfo['request_header'];
125126

126127
$this->curlError = $curlError;
127128

0 commit comments

Comments
 (0)