Skip to content

Commit

Permalink
Merge pull request #2094 from dompdf/curl-var-error
Browse files Browse the repository at this point in the history
Use correct variable when retrieving curl info
  • Loading branch information
bsweeney committed Feb 20, 2020
2 parents cbe2c2f + a70f124 commit 655667f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ public static function getFileContent($uri, $context = null, $offset = 0, $maxle
$data = curl_exec($curl);

if ($data !== false && !curl_errno($curl)) {
switch ($http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE)) {
switch ($http_code = curl_getinfo($curl, CURLINFO_HTTP_CODE)) {
case 200:
$raw_headers = substr($data, 0, curl_getinfo($curl, CURLINFO_HEADER_SIZE));
$headers = preg_split("/[\n\r]+/", trim($raw_headers));
Expand Down

0 comments on commit 655667f

Please sign in to comment.