Skip to content

Commit 6922c6a

Browse files
committed
refactoring
1 parent 0aa3847 commit 6922c6a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Http/Response.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function setHeader(string $name, ?string $value)
9494
} elseif (strcasecmp($name, 'Content-Length') === 0 && ini_get('zlib.output_compression')) {
9595
// ignore, PHP bug #44164
9696
} else {
97-
header($name . ': ' . $value, true, $this->code);
97+
header($name . ': ' . $value);
9898
}
9999
return $this;
100100
}
@@ -108,7 +108,7 @@ public function setHeader(string $name, ?string $value)
108108
public function addHeader(string $name, string $value)
109109
{
110110
self::checkHeaders();
111-
header($name . ': ' . $value, false, $this->code);
111+
header($name . ': ' . $value, false);
112112
return $this;
113113
}
114114

0 commit comments

Comments
 (0)