We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be66ec2 commit b0bfb40Copy full SHA for b0bfb40
1 file changed
Proxy.php
@@ -59,6 +59,12 @@ class Proxy
59
*/
60
public static $DEBUG = false;
61
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
+
68
/**
69
* When set to false the fetched result is echoed immediately instead of waiting for the fetch to complete first
70
* @var bool
@@ -325,7 +331,7 @@ protected static function createRequest($targetURL)
325
331
326
332
curl_setopt_array($request, [
327
333
CURLOPT_FOLLOWLOCATION => true,
328
- CURLOPT_HEADER => true,
334
+ CURLOPT_HEADER => static::$CURLOPT_HEADER,
329
335
CURLOPT_RETURNTRANSFER => static::$CURLOPT_RETURNTRANSFER,
330
336
CURLINFO_HEADER_OUT => true,
337
CURLOPT_HTTPHEADER => $headers
0 commit comments