We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85e6240 commit 67b0d7dCopy full SHA for 67b0d7d
proxy.php
@@ -90,6 +90,7 @@
90
91
// Output headers
92
$header = substr($out, 0, $info['header_size']);
93
+$header = preg_replace('/^Set-Cookie:/im', 'X-Proxy-Set-Cookie:', $header);
94
array_map('header', explode("\r\n", $header));
95
96
// And finally the body
test/echo.php
@@ -11,5 +11,7 @@
11
header_remove();
12
ob_start('ob_gzhandler');
13
header('Content-Type: application/json; charset=utf-8');
14
-header('X-TestHeader: This header should come back through');
+header('X-Test-Header: This header should come back through');
15
+setcookie('Test-Cookie', uniqid());
16
+
17
echo json_encode($info, JSON_PRETTY_PRINT | JSON_NUMERIC_CHECK | JSON_FORCE_OBJECT);
0 commit comments