fixed CS
This commit is contained in:
parent
75abd1a451
commit
5955f8edfe
|
@ -224,11 +224,7 @@ class Response
|
|||
$charset = $this->charset ?: 'UTF-8';
|
||||
if (!$headers->has('Content-Type')) {
|
||||
$headers->set('Content-Type', 'text/html; charset=' . $charset);
|
||||
} elseif (0 === stripos($headers->get('Content-Type'), 'text/') && false === stripos(
|
||||
$headers->get('Content-Type'),
|
||||
'charset'
|
||||
)
|
||||
) {
|
||||
} elseif (0 === stripos($headers->get('Content-Type'), 'text/') && false === stripos($headers->get('Content-Type'), 'charset')) {
|
||||
// add the charset
|
||||
$headers->set('Content-Type', $headers->get('Content-Type') . '; charset=' . $charset);
|
||||
}
|
||||
|
|
Reference in New Issue