Skip to content

Commit f0371da

Browse files
authored
Merge pull request php-curl-class#745 from zachborboa/master
Include option constant that uses the CURLINFO_ prefix
2 parents ba417b2 + 0356af0 commit f0371da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Curl/Curl.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1961,6 +1961,11 @@ function ($key) {
19611961
ARRAY_FILTER_USE_KEY
19621962
);
19631963
$curl_const_by_code = array_flip($filtered_array);
1964+
1965+
if (!isset($curl_const_by_code[CURLINFO_HEADER_OUT])) {
1966+
$curl_const_by_code[CURLINFO_HEADER_OUT] = 'CURLINFO_HEADER_OUT';
1967+
}
1968+
19641969
return $curl_const_by_code;
19651970
}
19661971

0 commit comments

Comments
 (0)