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 e98b3e3 commit 75cb6f5Copy full SHA for 75cb6f5
src/Response.php
@@ -186,10 +186,10 @@ public function quickSend(Response $response = null): void
186
187
// Write Headers to co response
188
foreach ($response->getHeaders() as $key => $value) {
189
- if ($key=='content-type'){
190
- $contentType = sprintf(implode(';', $value).";charset=%s",$this->getCharset());
+ if ($key == ContentType::KEY) {
+ $contentType = sprintf(implode(';', $value) . ";charset=%s", $this->getCharset());
191
$this->coResponse->header($key, $contentType);
192
- }else{
+ } else {
193
$this->coResponse->header($key, implode(';', $value));
194
}
195
0 commit comments