8000 fixed CS · symfony/symfony@5955f8e · GitHub
[go: up one dir, main page]

Skip to content

Commit 5955f8e

Browse files
committed
fixed CS
1 parent 75abd1a commit 5955f8e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Symfony/Component/HttpFoundation/Response.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,7 @@ public function prepare(Request $request)
224224
$charset = $this->charset ?: 'UTF-8';
225225
if (!$headers->has('Content-Type')) {
226226
$headers->set('Content-Type', 'text/html; charset=' . $charset);
227-
} elseif (0 === stripos($headers->get('Content-Type'), 'text/') && false === stripos(
228-
$headers->get('Content-Type'),
229-
'charset'
230-
)
231-
) {
227+
} elseif (0 === stripos($headers->get('Content-Type'), 'text/') && false === stripos($headers->get('Content-Type'), 'charset')) {
232228
// add the charset
233229
$headers->set('Content-Type', $headers->get('Content-Type') . '; charset=' . $charset);
234230
}

0 commit comments

Comments
 (0)
0