Skip to content

Commit 75cb6f5

Browse files
committed
fix Request test
1 parent e98b3e3 commit 75cb6f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Response.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,10 @@ public function quickSend(Response $response = null): void
186186

187187
// Write Headers to co response
188188
foreach ($response->getHeaders() as $key => $value) {
189-
if ($key=='content-type'){
190-
$contentType = sprintf(implode(';', $value).";charset=%s",$this->getCharset());
189+
if ($key == ContentType::KEY) {
190+
$contentType = sprintf(implode(';', $value) . ";charset=%s", $this->getCharset());
191191
$this->coResponse->header($key, $contentType);
192-
}else{
192+
} else {
193193
$this->coResponse->header($key, implode(';', $value));
194194
}
195195
}

0 commit comments

Comments
 (0)