Skip to content

Commit

Permalink
xml response to UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
ioigoume committed Dec 19, 2024
1 parent dfea964 commit 9cc0b5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Controller/Cas10Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function validate(
// Check if any of the required query parameters are missing
// Even though we can delegate the check to Symfony's `MapQueryParameter` we cannot return
// the failure response needed. As a result, we allow a default value, and we handle the missing
// values afterwards.
// values afterward.
if ($service === null || $ticket === null) {
$messagePostfix = $service === null ? 'service' : 'ticket';
Logger::debug("casserver: Missing service parameter: [{$messagePostfix}]");
Expand Down
2 changes: 1 addition & 1 deletion src/Http/XmlResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class XmlResponse extends Response
public function __construct(?string $content = '', int $status = 200, array $headers = [])
{
parent::__construct($content, $status, array_merge($headers, [
'Content-Type' => 'text/xml; charset=ISO-8859-1',
'Content-Type' => 'text/xml; charset=UTF-8',
]));
}
}

0 comments on commit 9cc0b5c

Please sign in to comment.