mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
MVC: Response->setContentType() default to empty, closes https://github.com/opnsense/core/pull/7655
This commit is contained in:
parent
724f8494d6
commit
897d3cce3a
@ -61,7 +61,7 @@ class Response
|
||||
* @param string|null $charset optional characterset
|
||||
* @return void
|
||||
*/
|
||||
public function setContentType(string $contentType, ?string $charset): void
|
||||
public function setContentType(string $contentType, ?string $charset = null): void
|
||||
{
|
||||
if (!empty($charset)) {
|
||||
$contentType .= '; charset=' . $charset;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user