From 0356af095f5b29d402069e07f41d6b796d052918 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Wed, 7 Dec 2022 13:23:54 -0800 Subject: [PATCH] Include option constant that uses the CURLINFO_ prefix --- src/Curl/Curl.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Curl/Curl.php b/src/Curl/Curl.php index 88bc8cc..49b2f98 100644 --- a/src/Curl/Curl.php +++ b/src/Curl/Curl.php @@ -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; }