File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,12 @@ class Proxy
5959 */
6060 public static $ DEBUG = false ;
6161
62+ /**
63+ * When set to false the fetched header is not included in the result
64+ * @var bool
65+ */
66+ public static $ CURLOPT_HEADER = true ;
67+
6268 /**
6369 * When set to false the fetched result is echoed immediately instead of waiting for the fetch to complete first
6470 * @var bool
@@ -325,7 +331,7 @@ protected static function createRequest($targetURL)
325331
326332 curl_setopt_array ($ request , [
327333 CURLOPT_FOLLOWLOCATION => true ,
328- CURLOPT_HEADER => true ,
334+ CURLOPT_HEADER => static :: $ CURLOPT_HEADER ,
329335 CURLOPT_RETURNTRANSFER => static ::$ CURLOPT_RETURNTRANSFER ,
330336 CURLINFO_HEADER_OUT => true ,
331337 CURLOPT_HTTPHEADER => $ headers
You can’t perform that action at this time.
0 commit comments