Include option constant that uses the CURLINFO_ prefix

This commit is contained in:
Zach Borboa
2022-12-07 13:23:54 -08:00
parent ba417b2c4a
commit 0356af095f
+5
View File
@@ -1961,6 +1961,11 @@ class Curl
ARRAY_FILTER_USE_KEY
);
$curl_const_by_code = array_flip($filtered_array);
if (!isset($curl_const_by_code[CURLINFO_HEADER_OUT])) {
$curl_const_by_code[CURLINFO_HEADER_OUT] = 'CURLINFO_HEADER_OUT';
}
return $curl_const_by_code;
}