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 0aa3847 commit 6922c6aCopy full SHA for 6922c6a
1 file changed
src/Http/Response.php
@@ -94,7 +94,7 @@ public function setHeader(string $name, ?string $value)
94
} elseif (strcasecmp($name, 'Content-Length') === 0 && ini_get('zlib.output_compression')) {
95
// ignore, PHP bug #44164
96
} else {
97
- header($name . ': ' . $value, true, $this->code);
+ header($name . ': ' . $value);
98
}
99
return $this;
100
@@ -108,7 +108,7 @@ public function setHeader(string $name, ?string $value)
108
public function addHeader(string $name, string $value)
109
{
110
self::checkHeaders();
111
- header($name . ': ' . $value, false, $this->code);
+ header($name . ': ' . $value, false);
112
113
114
0 commit comments