Skip to content

Commit

Permalink
MVC: Response->setContentType() default to utf-8, closes opnsense#7655
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Jul 26, 2024
1 parent 724f849 commit 810ecdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opnsense/mvc/app/library/OPNsense/Mvc/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function getContent(): string
* @param string|null $charset optional characterset
* @return void
*/
public function setContentType(string $contentType, ?string $charset): void
public function setContentType(string $contentType, ?string $charset = 'UTF-8'): void
{
if (!empty($charset)) {
$contentType .= '; charset=' . $charset;
Expand Down

0 comments on commit 810ecdc

Please sign in to comment.